answer is always +ve,

does anyone know how to code it ?

On Sat, Feb 11, 2012 at 11:37 AM, Tushar <[email protected]> wrote:

> for the given test case in the problem, answer could have been zero
>
> what does it mean by "without even reading zero" in the problm
> statement?
>
>
> On Feb 9, 11:34 pm, shady <[email protected]> wrote:
> > Hi All,
> > Anyway to implement this in a good mannerhttp://
> www.spoj.pl/ARHN/problems/PRINCESS, solution is simple,
> > check for ones and then generate numbers is an increasing number...
> > so if a number n = 22(10110)
> > then for k = 1, ans = 2(10)
> > then for k = 2, ans = 4(100)
> > then for k = 3, ans = 6(110)
> >
> > Shady
>
> --
> 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.
>
>

-- 
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