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
Can I call a virtual function from a constructor?[2007-02-26 23:42:21]   
Can I call a virtual function from a constructor?
linkAuthor:premTags: c++Answer

Access the static member of a class[2007-02-26 23:42:19]   
How can you access the static member of a class?
linkAuthor:premTags: coding | c++ | oopAnswer

i need answer[2009-08-04 06:08:22]   
Write a program to implement stack with POP and PUSH operations
linkAuthor:daveenyTags: stack2 CommentsAnswer

Triangle area mismatch problem[2008-10-02 08:08:42]   

Both triangles contain the same pieces, albeit arranged differently. How come the upper triangle is larger by one square?
linkAuthor:premTags: puzzle2 CommentsAnswer

Find smallest primes[2008-09-11 11:29:58]   
how will u find 5 smallest primes in an array having billions of element??(efficient solution required)
linkAuthor:AnonTags: algorithms | coding | arrays | math1 CommentAnswer

Minimal vertex set[2008-09-08 19:40:44]   
Given a graph (any type - Directed acyclic graph or undirected graphs with loops), find a minimal set of vertices which affect all the edges of the graph. An edge is affected if the edge is either originating or terminating from that vertex.
linkAuthor:premTags: algorithms | coding | c++1 CommentAnswer

Sum of the most common element in an array[2008-09-08 19:39:30]   
Find the sum of the most common element in an array. Example: A[]={12,23,24,89,78,76,24} OutPut:48
linkAuthor:premTags: algorithms | coding | arrays | c++1 CommentAnswer

[2008-07-15 14:19:35]   
You have 8*8 square grid with left-bottom and right-top squares removed. (thus there are only 62 squares remaining in the grid). You are given 31 tiles each of 2*1. You have to put the tiles on the grid without breaking any of the tiles (so that all squares of the grid are covered). How will you do that? Hint: It is impossible to do that, prove :) Generalize the result for 2n*2n grid. What is the case with (2n+1)*(2n+1) grid and (2n)*(2m+1) grid?
linkAuthor:AnonTags: puzzleAnswer

Triangle problem[2008-06-24 23:31:30]   
given a triangle ABC, how would you use only a compass and a straight edge to find a point P such that triangles ABP, ACP & BCP have equal perimeters?(Assume that ABC is constructed so that a solution does exist)
linkAuthor:premTags: puzzle | math1 CommentAnswer

[2008-06-24 23:28:10]   
# Say we have a data structure as follows: enum {RED,BLUE,GREEN}; struct Ball { /*...*/ int color; }; int ColorOfBall(Ball b) { return b.color; } Ball arr[SIZE]; The array arr consists of balls of with one of the three colours (Red,Green,Blue). Now we need to sort the array in such a way that all the Red coloured balls come first, followed by blue and then green. The restriction is that call to function ColorOfBall is a very costly operation. You have to use it as less as possible. (In other words we would be looking for the solution with least number of calls to the function ColorOfBall.)
linkAuthor:premTags: coding | arrays | c++ | sortingAnswer

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

Probability to spot a car[2008-06-16 04:16:49]   
If the probability of observing a car in 30 minutes on a highway is 0.95, what is the probability of observing a car in 10 minutes
linkAuthor:sudhaTags: puzzle | math | probability4 CommentsAnswer


next »




Created by Premchand Jayamohan