> > 2. Second As I have copy pasted the condition for two if's L and R I > never changed the second if condition to 'R' until I was printing > everything from my program for debugging.
Copy/Paste errors are very, very easy to make. I have two solutions: 1. Never copy/paste anything. 2. If you do copy/paste something, make sure it's visually separate from the rest of the page. e.g.: /// put this line in before 1. Never copy/paste anything. 2. If you do copy/paste something, make sure it's visually separate from the rest of the page. e.g.: /// put this line in before ...and then go carefully from one end of it to the other, making sure you didn't do anything wrong. Another thing you can do is read your program carefully after you're done. For example, the person who coded this ended up with an obvious asymmetry, and re-reading would have stopped him from being knocked out of the tournament: http://www.topcoder.com/stat?c=problem_solution&rm=300671&rd=13761&pm=10361&cr=304031 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "google-codejam" 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 -~----------~----~----~----~------~----~------~--~---
