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
Stack find_min[2007-02-26 23:42:22]   
Propose a data structure that supports the stack push and pop operations and a third operation find_min, which returns the smallest element in the data structure, all in O(1) worst case time.
linkAuthor:premTags: algorithms | codingAnswer

How do you link a C++ program to C functions?[2007-02-26 23:42:19]   
How do you link a C++ program to C functions?
linkAuthor:premTags: coding | c++ | oopAnswer

Finding the next prime[2007-02-26 23:42:18]   
Given a number, describe an algorithm to find the next number which is prime.
linkAuthor:premTags: algorithms | coding | prime1 CommentAnswer

Prime pairs[2007-02-26 23:42:19]   
Pairs of primes separated by a single number are called prime pairs. Examples are 17 and 19. Prove that the number between a prime pair is always divisible by 6 (assuming both numbers in the pair are greater than 6). Now prove that there are no 'prime triples.'
linkAuthor:premTags: primeAnswer

Ugly numbers[2007-02-26 23:42:22]   
Ugly numbers are numbers whose only prime factors are 2, 3 or 5. The sequence
1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 15, ...
shows the first 11 ugly numbers.
By convention, 1 is included.

Write a program to find and print the 1500'th ugly number.
linkAuthor:premTags: coding | primeAnswer

Prime no detection[2007-02-26 23:42:18]   
Write code to detect whether or not a given number is prime
linkAuthor:premTags: coding | primeAnswer





Created by Premchand Jayamohan