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
Find first non-duplicate character in a string[2007-02-26 23:42:18]   
Find first non-duplicate character in a string
"abcda" -> first non-duplicate 'b'
linkAuthor:premTags: algorithms | codingAnswer

Building and egg problem[2007-02-26 23:42:18]   
There is a building of 100 floors. If an egg drops from the Nth floor or
above it will break. If it's dropped from any floor below, it will not
break. You're given 2 eggs. Find N, and minimize the number of drops
for the worse case.
linkAuthor:premTags: puzzleAnswer

Random number generator[2007-02-26 23:42:18]   
Design a random number generator such that it selects ‘m’ random numbers
from an unsorted array of ‘n’ elements, where each element has equal
probability of being picked. A number picked cannot be chosen again.
linkAuthor:premTags: algorithms | randomAnswer

Card shuffling[2007-02-26 23:42:17]   
Give me an algorithm to shuffle a deck of cards, given that the cards
are stored in an array of ints.
linkAuthor:premTags: algorithms | coding | randomAnswer





Created by Premchand Jayamohan