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
PowerSet[2007-02-26 23:42:22]   
Write a Recursive function which generates the PowerSet of a given Set.

The Set is passed to the Function as a String. And the Function should
print the Subsets as Strings.

[Note:]
PowerSet( {1,2,3} ) = 0, 1, 2, 3, 12, 13, 23, 123 //0 is Null Set.
And the Order of the SubSets is not Mandatory.

Sample TestCase:
I/P :"abc"
O/P:
0
a
b
ab
c
ac
bc
abc
linkAuthor:premTags: coding1 CommentAnswer

Quarter puzzle[2007-02-26 23:42:21]   
You play this game with one other player: Starting with an ampty rectangular table like this one, and an unlimited supply of quarters, each person takes a turn by putting a quarter anywhere in the table. The rules say only that you must place your quarter so that it doesn't touch any quarter already on the table. You and your opponent take turns placing quarters in succession, until the table is nearly full of quarters. The first player who is unable to add a quarter without touching a quarter already placed loses.
You move first. What strategy will you use to play this game?
linkAuthor:premTags: puzzleAnswer

Find Nth in series[2007-10-03 10:51:24]   
There is a series of numbers in ascending order. All these numbers have the same number of binary 1s in them. Given the number of 1 bits set in the numbers, write an algorithm/C program to find the nth number in the series.
linkAuthor:premTags: next in series | algorithms | coding | c++ | bit manipulationAnswer

What number comes next in the sequence:[2007-02-26 23:42:19]   
10, 9, 60, 90, 70, 66,?

A)96
B) 1000000000000000000000000000000000
0000000000000000000000000000000000
000000000000000000000000000000000
C) Either of the above
D) None of the above
linkAuthor:premTags: next in series2 CommentsAnswer

What is the next number in the sequence?[2007-02-26 23:42:18]   
What is the next number in the sequence of 10, 9, 60, 90, 70, 66?
linkAuthor:premTags: next in series1 CommentAnswer

Whats next in the series?[2007-02-26 23:42:16]   
8, 5, 4, 9, 1, 7, 6, Whats next in the series?
linkAuthor:premTags: next in series1 CommentAnswer

Sequence problem[2007-02-26 23:42:17]   
Consider the sequence that begins with {1, 11, 21, 1211, 111221}. Find a
rule that describes the sequence, and give the next term. Obviously,
there are an unlimited number of rules that can describe the sequence.
linkAuthor:premTags: next in seriesAnswer

Sequence problem[2007-02-26 23:42:22]   
Here is an interesting sequence..
1 20 33 400 505 660 777 8000 9009 10100 11121
What are the next few numbers in the above sequence?
linkAuthor:premTags: next in series1 CommentAnswer

Next in series[2007-10-03 11:11:11]   
Here is an interesting sequence.. 1 20 33 400 505 660 777 8000 9009 10100 11121 What are the next few numbers in the above sequence?
linkAuthor:premTags: puzzle | next in series2 CommentsAnswer





Created by Premchand Jayamohan