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
Double pointers[2007-02-26 23:42:18]   
When do you use a double pointer?
linkAuthor:premTags: coding | c++1 CommentAnswer

Array problem[2007-02-26 23:42:17]   
You are given a 2-dimensional integer array Arr[M][N]. A few of the
elements in this array are zero. Write an algorithm such that if
A[i][j] is zero, all the elements in row i and all the elements in
column j should be set to 0. In other words, if any element is zero,
its entire row and column should be zero.
linkAuthor:premTags: algorithms | coding | arrays3 CommentsAnswer

[2007-10-03 11:02:27]   
Given two sorted linked lists, L1 and L2, write a C program to compute L1 /\\ L2 (L1 intersection L2).
linkAuthor:premTags: algorithms | coding | c++ | sorting | linkedlist3 CommentsAnswer

Million number problem[2007-02-26 23:42:18]   
You are given 1 million unique numbers.
- How would you sort them?
- What if i dont have enough main memory(RAM) to hold the data in memory
- What if the data is 7 digits long(min:0000000 to max:9999999)
linkAuthor:premTags: sortingAnswer

Sorting a stack[2007-10-03 10:54:51]   
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 | c++ | sorting | stack5 CommentsAnswer

Find 2 elements in set equal to a given value in O(n ln n) time[2007-02-26 23:42:19]   
Describe a O(n ln n) - time algorithm that, given a set S of n real numbers and another real number x, determines whether or not there exists two elements in S whose sum is exactly x.
linkAuthor:premTags: algorithms | coding | sorting1 CommentAnswer

Array sorting problem[2007-02-26 23:42:17]   
Sort an array of size n containing integers between 1 and K, given a
temporary scratch integer array of size K.
linkAuthor:premTags: arrays | sorting1 CommentAnswer

Sorting array of zeros and ones[2007-02-26 23:42:17]   
How will you sort an array of 0s and 1s.
linkAuthor:premTags: algorithms | arrays | sorting2 CommentsAnswer

[2007-10-03 10:56:35]   
Given: 2 Unsorted single linked list Todo: Fastest and optimised way to merge and make a single sorted list with these 2 unsorted single linked list.
linkAuthor:premTags: algorithms | coding | c++ | sorting | linkedlist1 CommentAnswer

Quicksort[2007-02-26 23:42:19]   
Explain quicksort. What is the average case runtime? best case? worst case? What is the depth of stack? what is the memory used?
linkAuthor:premTags: algorithms | coding | sortingAnswer

[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

Array - Find a number which is addition of 2 other numbers[2007-08-18 01:22:40]   
Given an array of n numbers and given a number x, find 2 integers in that array which will add up to that given number. Should be done in time worst case O(n lg n).
linkAuthor:sudhaTags: algorithms | arrays | sorting1 CommentAnswer


next »




Created by Premchand Jayamohan