Puzzle CornerSign In
HomeFeedbackBlogResourcesAbout
Starred
Add Question
All (696)
coding (266)
c++ (157)
algorithms (151)
puzzle (134)
CS Fundamentals (83)
oop (55)
arrays (45)
internet (40)
string (34)
math (31)
databases (28)
system (26)
probability (26)
networking (25)
linkedlist (24)
binarytrees (24)
tree (22)
bit manipulation (19)
sorting (11)
stack (10)
bst (9)
java (8)
xml (8)
sql (7)
next in series (7)
traversal (6)
graph (4)
debugging (4)
lateral thinking (4)
palindrome (4)
mysql (4)
prime (4)
general (4)
unix (3)
CGI (3)
duplication (3)
threading (3)
random (3)
search (3)
fibonacci (3)
encryption (3)
joins (3)
hash (3)
queue (3)
asm (3)
design patterns (2)

next »

Random
How can you force instantiation of a template?[2007-02-26 23:42:21]   
How can you force instantiation of a template?
linkAuthor:premTags: c++Answer

Create an equilateral triangle using three toothpicks[2007-02-26 23:42:19]   
Create an equilateral triangle using three toothpicks. Now add three more equilateral triangles of the same size as the original using only three more toothpicks.
linkAuthor:premTags: puzzle2 CommentsAnswer

Multiplication of numbers[2008-06-16 04:56:01]   
There is an array A[N] of N numbers. You have to compose an array Output[N] such that Output[i] will be equal to multiplication of all the elements of A[N] except A[i]. For example Output[0] will be multiplication of A[1] to A[N-1] and Output[1] will be multiplication of A[0] and from A[2] to A[N-1]. Solve it without division operator and in O(n).
linkAuthor:sudhaTags: puzzle | arrays | math8 CommentsAnswer

calendar cubes[2007-02-26 23:42:18]   
A man has two cubes on his desk. every day he arranges both cubes so that the front faces show the current day of the month. what numbers are on the faces of the cubes to allow this?
linkAuthor:premTags: puzzle3 CommentsAnswer

Boys & train problem[2007-02-26 23:42:19]   
Two boys walking in the woods decide to take a shortcut thru a railroad tunel. When they had walked 2/3 of the way, their worst fears were realized. A train was coming in the opposite direction, nearing the tunnel entrance. They boys panicked and each ran for a different end of the tunnel. Both boys ran at the same speed, 10 miles per hour Each boy escaped from the tunnel just at the instant the train would have squashed him. Assuming the train's speed was constant, and both boys were capable of instantaneous reaction and acceleration, how fast was the train going?
linkAuthor:premTags: puzzle4 CommentsAnswer

Rectangle of words[2007-02-26 23:42:18]   
Given a dictionary of millions of words, write a program to find the
largest possible rectangle of letters such that every row forms a word
(reading left to right) and every column forms a word (reading top to
bottom).
linkAuthor:premTags: puzzle | algorithms | coding2 CommentsAnswer

A geometry/math problem[2007-02-26 23:42:18]   
Given a triangle and two intersecting line segments within the triangle,
find the angle made by the intersection of these two segments.
linkAuthor:premTags: puzzle | mathAnswer

Time measurement problem[2007-02-26 23:42:17]   
There are two long wooden rods of arbitrary lengths. Each takes an hour
to burn and each burns at its constant rate. Without measuring the
length of the rods, how would you clock exact 45 min provided that you
are given as many matchsticks as you need to burn the wood
linkAuthor:premTags: puzzle3 CommentsAnswer

Resistance between nodes[2007-02-26 23:42:19]   
On an infinite, two-dimensional, rectangular lattice of 1-ohm resistors, what is the resistance between two nodes that are a knight's move away?
linkAuthor:premTags: puzzle | algorithmsAnswer

Light switches problem[2007-02-26 23:42:16]   
In your cellar there are three light switches in the OFF position. Each
switch controls 1 of 3 light bulbs on floor above. You may move any of
the switches but you may only go upstairs to inspect the bulbs one time.
How can you determine the switch for each bulb with one inspection??
linkAuthor:premTags: puzzle | lateral thinking2 CommentsAnswer

Turnpike problem[2007-02-26 23:42:19]   
A turnpike consists of n-1 stretches of road between n toll stations; Each stretch has an associated cost of travel. It is trivial to tell the cost of going between any 2 stations in O(n) time using only an array of the costs, or in constant time using a table of O(n^2) entries. Describe a data structure that requires O(n) space but allows the cost of any route to be computed in constant time.
linkAuthor:premTags: puzzle | coding1 CommentAnswer

Which offer is better and why?[2007-02-26 23:42:19]   
Which offer is better and why?

1. You are to make a statement. If the statement is true, you get exactly $10. If the statement is false, you get either less than or more than $10 but not exactly $10.
2. You are to make a statement. Regardless of whether the statement is true or false, you get more than $10.
linkAuthor:premTags: puzzle1 CommentAnswer


next »




Created by Premchand Jayamohan