Posts

Showing posts from 2012

find 3 non repeating numbers in an array using xor and constant extra space

Prefix to Infix conversion of an expression

Post to Infix conversion of an expression

Infix to Prefix conversion of an expression

Infix to Postfix conversion of an expression

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