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
nuggets[2007-02-26 23:42:18]   
you can go to a fast food restaurant to buy chicken nuggets in 6-pack, 9-pack or 20-packs. is there such a number N, such that for all numbers bigger than or equal to N, you can buy that number of chicken nuggets?
linkAuthor:premTags: puzzle | algorithms1 CommentAnswer

Cheating wives[2007-02-26 23:42:18]   
A bunch of couples are on an island. A genie comes down and gathers the
men together and tells them: "I know for a fact that at least one of
your wives is cheating on you. So, if your wife is cheating on you, I'm
going to put a code on your head." The men then ask for a way to remove
it, which she grants: "to remove it, you must dunk your wife under water
at exactly midnight. If you are wrong, you die - so don't mess up. You
will not be able to see or feel the crown on your head, but everyone
else can. However, they are forbidden to tell you or signal in any way
that you have a crown." How long does it take the men remove the crowns?
(Assume there are n men and c crowns. The men do not know what c is)
linkAuthor:premTags: puzzleAnswer

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

What happens after a 'fork' system call?[2007-02-26 23:42:19]   
What happens after a 'fork' system call?
linkAuthor:premTags: CS Fundamentals1 CommentAnswer

Streaming problem[2007-02-26 23:42:18]   
Assume your computer is reading characters one by one from a stream (you
don't know the length of the stream before ending). Note that you have
only one character of storage space (so you cannot save the characters
you've read to a something like a strong). When you've finished reading
you should return a character out of the stream with equal probability.
linkAuthor:premTags: algorithms | coding | probability2 CommentsAnswer

C++ const question[2007-02-26 23:42:18]   
In C++ what is the Difference between const pointer and pointer to const.
linkAuthor:premTags: c++2 CommentsAnswer

Return unique elements in an array[2007-02-26 23:42:19]   
Implement an algorithm to take an array and return one with only unique elements in it.
linkAuthor:premTags: algorithms | arrays3 CommentsAnswer

Normalization[2007-02-26 23:42:20]   
What is "normalization"? "Denormalization"? Why do you sometimes want to denormalize?
linkAuthor:premTags: databasesAnswer

Keys storage & access[2007-02-26 23:42:18]   
Given a set of KEY->VALUE pairs such that each KEY is unique, describe a method of storing these pairs on disk, and a method for accessing the corresponding VALUE given a KEY. Assume that RAM is fixed at 1gb and the set of pairs requires 40gb.

HINT: we are trying to minimize page-transfers
linkAuthor:premTags: system1 CommentAnswer

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


next »




Created by Premchand Jayamohan