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)

Random
Mirror Image of a Binary Tree[2007-06-26 08:38:01]   
Change a binary tree so that the roles of the left and right pointers are swapped at every node.
linkAuthor:manibTags: binarytrees2 CommentsAnswer

Binary search tree twist[2007-02-26 23:42:20]   
You are given a special binary search tree where each node contains the
number of nodes in its child-trees in addition to the key.

Example.

10,5
/
/
5,3 15,0
/
/
2,0 6,1


7,0

(a,b) => a is the key
b is the number of nodes in the child trees.

Now the problem is given any two values, give an algorithm with minimum time
complexity, which gives the number of values in between the two given values
in the sorted array.

For example given 2 & 7, it should give 2 (since 5 & 6 are there in between
2 & 7).
linkAuthor:premTags: algorithms | coding1 CommentAnswer

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

What is the age of my children?[2008-03-13 18:29:30]   
Mr. X meet Mr. Y during an early morning walk. Mr Y asks the age of Mr. X\'s children and Mr. X is a math professor so gives Mr Y a problem to solve. Mr X says -> I have 3 children -> The product of their ages is 36 -> The sum of their age is equal to the number of houses in my street. -> And my first daughter has blue eyes. Using these clues Mr Y was able to say the ages of the 3 children.
linkAuthor:premTags: puzzle | lateral thinking | math4 CommentsAnswer

A google puzzle[2007-10-29 03:31:00]   
Not sure if this really is a valid puzzle, but WTH, one of you smart guys might find something after all. Enjoy! \"\"
linkAuthor:premTags: puzzle | lateral thinkingAnswer





Created by Premchand Jayamohan