Hi,

Many coders use code like this:

int q[N][N], ptr[N];

and then:
q[i][ptr[i]]

It was used a lot to solve Ratatouille
https://code.google.com/codejam/contest/5304486/dashboard#s=p1&a=1

I am a newbie, but it seems like an efficient way to keep state(?)

when do you use such approach?

Thank you.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Code Jam" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-code+unsubscr...@googlegroups.com.
To post to this group, send email to google-code@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-code/52d4c6d8-7198-4a02-9f9e-ff0875d18d5f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to