On Sun, Aug 29, 2010 at 1:35 AM, Gene <[email protected]> wrote:

> My algorithm proposal wasn't correct, but I can't see how to get 8.
> You need to decrement 14, 15, 16, 13 to 11.  This costs 14.
>
> So do I.
May be he has not noticed that incrementing a number is not an option. ;)


>  On Aug 28, 5:41 am, gaurav singhal <[email protected]> wrote:
> > @ Gene :
> >
> > Output for
> >
> > int a[] = { 14, 15, 16, 13, 11, 18 };
> >
> > is coming out to be 14
> >
> > whereas minimum cost will be : 8
>
> --
> 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]<algogeeks%[email protected]>
> .
> 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 [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