[algogeeks] changing structure of binary tree based on gravity and node selected.

2014-01-14 Thread atul anand
Imagine a binary tree lying on the floor with nodes as balls and edges as threads, you are given a pointer to a node. When you pick the tree from that node up what will be the structure of the tree. You have gravity changing the structure of the tree -- You received this message because you are s

Re: [algogeeks] Solving equation

2014-01-14 Thread Arpit Sood
Equivalent to solving an infix expression using stack with a pair (first variable, second constant) as the element On Sat, Jan 11, 2014 at 6:50 AM, atul anand wrote: > Hello, > > How to solve an equation with one unknown variable ? > operator allowed are : + , - > > for eg . input could be :-