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
Spaceship[2007-02-26 23:42:19]   
You are on a spaceship that has a computer with n processors. Suddenly, the spaceship gets hit with an alien laser beam, and some of the processors are damaged. However, you know that more than half of the processors are still good. You can ask one processor whether it thinks another processor is good or bad. A good processor will always tell the truth, but a bad one will always lie. A 'step' consists of asking one processor if it thinks another processor is good or bad. Find one good processor, only using n-2 steps.
linkAuthor:premTags: puzzle1 CommentAnswer

XML[2007-02-26 23:42:20]   
What is XML and what is it good for?
linkAuthor:premTags: CS Fundamentals | internet | xml1 CommentAnswer

Find lowest common ancestor in BST[2007-02-26 23:42:17]   
Given 2 nodes in a BST, give an approach to find the lowest common
ancestor. Code it.
linkAuthor:premTags: algorithms | binarytrees | tree | bst | traversal4 CommentsAnswer

BST problem[2007-02-26 23:42:18]   
Imagine u have an unbalanced binary search tree. Now make a linked list
of all the nodes at every depth(level) of the tree. Assume every node
along with a left and a right pointer also has a next pointer. To make
the linked list inside the binary tree for every level, the next pointer
of the first node at every depth should point to the next node at the
same depth in the tree and so on for the other nodes.What is the
complexity of your algorithm. Improve the efficiency.Code the algorithm
and then thoroughly test it?
linkAuthor:premTags: algorithms | coding | binarytrees | tree | bst1 CommentAnswer

Find 2 nodes in BST which add up to a given value[2007-05-29 04:26:08]   
Given a value and a binary search tree. Print all the paths(if there exists more than one) which sum up to that value. It can be any path in the tree. It doesnt have to be from the root.
linkAuthor:premTags: bstAnswer

BST find key or closest to key[2007-02-26 23:42:18]   
Given a binary search tree and a keyvalue, return the node that has
value closest to the key.
linkAuthor:premTags: algorithms | coding | binarytrees | tree | bst1 CommentAnswer

Find lowest value in BST gt than a certain value[2007-02-26 23:42:17]   
Find the lowest valued node in a Binary Search Tree (BST) greater than
or equal to a a certain value.
linkAuthor:premTags: algorithms | binarytrees | tree | bst | traversalAnswer

BST problem[2007-02-26 23:42:17]   
Given a non-verified BST(Binary search tree), write a C/C++ code to
verify if the BST is a valid one or not(basic BST rule-->data of all
nodes under left node <= data of current node <= data of all nodes under
right node)
linkAuthor:premTags: coding | binarytrees | bstAnswer

BST verification[2007-02-26 23:42:17]   
Given a BST, give an approach to verify if it is a 'valid' BST. Code it.
linkAuthor:premTags: algorithms | bstAnswer

Merging 2 search trees[2007-02-26 23:42:17]   
Describe a way to merge two search trees.
linkAuthor:premTags: algorithms | tree | bstAnswer

isBST() Function[2007-06-26 08:45:38]   
Given a plain binary tree, examine the tree to determine if it meets the requirement to be a binary search tree.
linkAuthor:manibTags: bst3 CommentsAnswer





Created by Premchand Jayamohan