check this out: http://www.cppreference.com/wiki/stl/algorithm/next_permutation

most solutions used this trick, without having to implement it

On Sep 12, 6:00 pm, "David M." <[email protected]> wrote:
> 8000.Only can use an eight and all zeros you want...
>
> 2009/9/12 sep <[email protected]>
>
>
>
> > The number is 800
>
> > The next number is 8000 or 1008?????

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"google-codejam" 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/google-code?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to