@ rahul .. you can give the solution for both cases .. :-o
@ ashish :P

On Mon, Feb 7, 2011 at 9:23 PM, ashish agarwal <ashish.cooldude...@gmail.com
> wrote:

> jalaj back to algogeeks..
>
>
> On Mon, Feb 7, 2011 at 6:09 PM, rahul rai <raikra...@gmail.com> wrote:
>
>> Are all the integers positive only ?
>>
>> On 2/7/11, jalaj jaiswal <jalaj.jaiswa...@gmail.com> wrote:
>> > you are given a bst where each node has a int value , parent pointer ,
>> and
>> > left and right pointers , write a function to find a path with a given
>> sum
>> > value. Path can go from left subtree tree , include root and go to right
>> > tree as well . we need to find these paths also .
>> > 5
>> > / \
>> >
>> > 1    10
>> > / \    / \
>> > 0 2 6 11
>> >
>> > so to find 16 we say it is 1 to 5 to 10 &10 to 6
>> >
>> > try make use of parent pointer and find a solution :-o
>> >
>> >
>> > --
>> > With Regards,
>> > *Jalaj Jaiswal* (+919019947895)
>> > Final Year Undergraduate,
>> > IIIT ALLAHABAD
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> Groups
>> > "Algorithm Geeks" group.
>> > To post to this group, send email to algogeeks@googlegroups.com.
>> > To unsubscribe from this group, send email to
>> > algogeeks+unsubscr...@googlegroups.com.
>> > For more options, visit this group at
>> > http://groups.google.com/group/algogeeks?hl=en.
>> >
>> >
>>
>>
>> --
>> Rahul K Rai
>> rahulpossi...@gmail.com
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Algorithm Geeks" group.
>> To post to this group, send email to algogeeks@googlegroups.com.
>> To unsubscribe from this group, send email to
>> algogeeks+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/algogeeks?hl=en.
>>
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to algogeeks@googlegroups.com.
> To unsubscribe from this group, send email to
> algogeeks+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>



-- 
With Regards,
*Jalaj Jaiswal* (+919019947895)
Software developer, Cisco Systems
Final Year Undergraduate,
IIIT ALLAHABAD

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to