you can initialize it to (Max-Min+1)
where Max = max of all elements
Min = min of all elements

Or simple initialise it to a large integer like 0x7fffffff for 32 bit
numbers.


On Tue, Jun 28, 2011 at 3:32 PM, vikas <[email protected]> wrote:

> what will be the oldDiff initially. can u plz explain with a egsample
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/algogeeks/-/NXQqyUTbdlkJ.
>
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>



-- 
Sunny Aggrawal
B-Tech IV year,CSI
Indian Institute Of Technology,Roorkee

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

Reply via email to