Comments on Programs submitted

 

  1. Documentation is woefully inadequate.
  2. It seems as if some of the problems are arising because you don’t fully understand the problem.  You need to discussit more carefully with your team-mate before starting to code.
  3. It appears that folks are having more success with C and C++ programs than with Java programs.
  4. The Java IO for the contest site appears not to be what you all expect.
  5. For readability you need to declare variables up top – even though Java, C++ and C let you declare them anywhere.
  6. Instead of  using break to get out of a loop, think about making the loop condition a compound condition with one of the conditions holding a Boolean variable.
  7. Remember DeMorgan’s laws
    1. NOT(A AND B) =  NOT (A) OR NOT(B)
    2. NOT(A OR B) = NOT(A) AND NOT(B)
  8. Documentation is woefully inadequate.
  9. Comments detailing the algorithm (what you are doing) should be written before you write any code
  10. Comments explaining why you are doing something should be added to make your programs more readable and will probably be of more help during the contest than you can imagine at this point.
  11.