I finally got it. Very nice problem ! The extra parameter means you dont have to do the inclusion / exclusion stuff each step, and it simplifies the code considerably.
On Monday, November 19, 2012 8:20:35 PM UTC+1, Eric G wrote: > > Hello, > > I am having trouble understanding the solution to a problem in the 2009 > finals : double sorted grid. > http://code.google.com/codejam/contest/311101/dashboard#s=p2 > > I did manage to get a solution running in around 4 minutes, and I'd like > to do the last optimization that mentions adding a column parameter. > > What I do not understand is how this changes the solution. > > I attached what I've done so far. > > Thanks in advance to whomever may be able to help! > > PS. The dude who wrote the solution mentions "an easy exercise for the > reader".....I hope he/she was kidding. > > > -- 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]. To view this discussion on the web visit https://groups.google.com/d/msg/google-code/-/c914-w8OPVMJ. For more options, visit https://groups.google.com/groups/opt_out.
