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
Stack sorting problem[2007-02-26 23:42:18]   
Given a stack S, write a C program to sort the stack (in the ascending
order).

We are not allowed to make any assumptions about how the stack is
implemented.
The only functions to be used are:
Push
Pop
Top
IsEmpty
IsFull
linkAuthor:premTags: algorithms | coding | stackAnswer

How does man-in-middle attack happen?[2007-02-26 23:42:21]   
How does man-in-middle attack happen?
linkAuthor:premTags: CS Fundamentals | internetAnswer

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

A geometry/math problem[2007-02-26 23:42:18]   
Given a triangle and two intersecting line segments within the triangle,
find the angle made by the intersection of these two segments.
linkAuthor:premTags: puzzle | mathAnswer

Sum of digits of a given number[2007-02-26 23:42:18]   
Write a function that sums & returns the digits of an unsigned integer.
linkAuthor:premTags: coding | mathAnswer

Number problem[2007-02-26 23:42:19]   
You have a list of numbers X1, X2, X3, ... Xn
Populate the list Y with numbers Y1, Y2, Y3,...Yn, where Yi is the
product of Y1 * Y2 * .. Y(i-1) * Y(i+1) * Y(i+2)...Yn
What if you were not allowed to use division operator? Can you still
compute the results in O(n * log n)? How about O(n)?
linkAuthor:premTags: algorithms | math1 CommentAnswer

Drawing a circle[2007-02-26 23:42:20]   
Write a routine to draw a circle given a center coordiante (x,y) and a radius (r) without making use of any floating point computations
linkAuthor:premTags: puzzle | coding | mathAnswer

Prove that n*(n+1)*(2*n+1) is divisible by 6, for any n>0[2007-02-26 23:42:22]   
Prove that n*(n+1)*(2*n+1) is divisible by 6, for any n>0
linkAuthor:premTags: math1 CommentAnswer

What is the age of my children?[2008-03-13 18:29:30]   
Mr. X meet Mr. Y during an early morning walk. Mr Y asks the age of Mr. X\'s children and Mr. X is a math professor so gives Mr Y a problem to solve. Mr X says -> I have 3 children -> The product of their ages is 36 -> The sum of their age is equal to the number of houses in my street. -> And my first daughter has blue eyes. Using these clues Mr Y was able to say the ages of the 3 children.
linkAuthor:premTags: puzzle | lateral thinking | math4 CommentsAnswer

Coloring problem[2007-02-26 23:42:19]   
You are given a bunch of lines(non-parallel), and they intersect each other(thereby forming multiple quadrilaterals(A polygon having four sides)). Given this, how many colors are needed to color the quadrilaterals, such that there are no 2 quadrilaterals, sharing a common edge, having the same color? why?
linkAuthor:premTags: puzzle | algorithms | math1 CommentAnswer

Hostess[2007-02-26 23:42:19]   
A couple invites n-1 other couples to dinner. Once everyone arrives, each person shakes hands with everyone he doesn't know. Then, the host asks everyone how many hands they shook, and each person replies with a different number. Assuming that everyone knows his or her own spouse, how many hands did the hostess shake?
linkAuthor:premTags: puzzle | mathAnswer

Matrix problem[2007-02-26 23:42:18]   
If a 2-d matrix were to be represented in (a) row-major order and (b)
column-major order, what would be the corresponding index given the
indices of the 2-d matrix?
linkAuthor:premTags: mathAnswer


next »




Created by Premchand Jayamohan