Posts

Showing posts from October, 2012

Gray to Binary number..

Binary to Gray number..

Euler triangle using O(n) auxiliary space

Pascal Triangle with O(n) auxiliary space.

Minimum unsorted subarray using stack

Representing Queue using 2 stacks

Reversing stack

Reversing Queue

Cycle Sort (requires minimum number of swaps)

Find center of a tree

Find next higher number with same number of 1's in binary form

Find out different combinations of brackets

Multiply two large numbers..

Postorder using two stacks..

Postorder using 1 stack..

PreOrder and Inorder traversal of Tree using 2 queues.

Implementation of stack using queues..

Inorder preorder traversal using stack..

Print integer in words again!

Print integers in words using switch case..

Find maximum sum path in a triangle from top to bottom.

Number of binomial coefficient's of n whose mod with p gives 0..

Sum of all numbers multiple of 3 or 5 less than 1000