10998 - Flipping Colors

All about problems in Volume 109. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

DD
Experienced poster
Posts: 145
Joined: Thu Aug 14, 2003 8:42 am
Location: Mountain View, California
Contact:

Re: 10998 - Flipping colors

Post by DD » Fri Mar 01, 2013 9:00 am

I was so fool that I first try to initialize an 2D array filled with black. After several failed try, I realized it can only be solved to simulate every time according to the input :o Finally, I got A.C. :D
Have you ever...
  • Wanted to work at best companies?
  • Struggled with interview problems that could be solved in 15 minutes?
  • Wished you could study real-world problems?
If so, you need to read Elements of Programming Interviews.

Post Reply

Return to “Volume 109 (10900-10999)”