Yes I understand it. I will reply to this, but not tonight. Don't worry, you are unlikely to need this for the qualification round.
On Fri, Apr 13, 2012 at 3:34 PM, Prasoon Kumar <[email protected]> wrote: > Hi, > > If someone understood solution for problem "Program within a Program" of > 2011 Code Jam final, plz explain below mentioned algo mentioned in > analysis- > { > > Here is one effective way of doing this: > > First write down the distance you want to go forward in binary, using the > values 1 and 2 to represent the binary digits. This information will now be > available on the starting lampposts. > Now repeat the following: > > Trace through the number from right to left, and subtract 1 as you go. > If the number was 0, then drop the cake right now. > Otherwise trace through the number from left to right, copying everything > one position to the right. > > } > http://code.google.com/codejam/contest/1327485/dashboard#s=a&a=2 > > > Thanks, > Prasoon > > -- > You received this message because you are subscribed to the Google Groups > "Google Code Jam" 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. -- You received this message because you are subscribed to the Google Groups "Google Code Jam" 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.
