Puzzle Corner
Sign In
Home
Feedback
Blog
Resources
About
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
What are inline functions?
[
2007-02-26 23:42:21
]   
What are inline functions?
Why should I use inline functions instead of plain old #define macros?
How can inline functions help with the tradeoff of safety vs. speed?
link
Author
:
prem
Tags
:
c++
Answer
Airplane problem
[
2007-02-26 23:42:19
]   
Consider three identical airplanes starting at the same airport. Each plane has a fuel tank that holds just enough fuel to allow the plane to travel half the distance around the world. These airplanes possess the special ability to transfer fuel between their tanks in mid-flight. Devise a scheme that will allow one airplane to travel all the way around the world, landing only at the original airport.
link
Author
:
prem
Tags
:
puzzle
Answer
Find node in tree
[
2007-02-26 23:42:17
]   
Given a tree such that each node has a child and sibling, find a node in
the tree.
Prioritize the search by level (ie., check all siblings before
children). Hint: use a queue
link
Author
:
prem
Tags
:
algorithms
|
coding
|
binarytrees
|
tree
|
queue
1 Comment
Answer
Queue using stacks
[
2007-02-26 23:42:18
]   
Write and algorithm to implement a Queue using 2 Stacks and write test
cases for it
link
Author
:
prem
Tags
:
algorithms
|
coding
|
stack
|
queue
2 Comments
Answer
Created by
Premchand Jayamohan