Comments on Programs
submitted
- Documentation
is woefully inadequate.
- 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.
- It
appears that folks are having more success with C and C++ programs than
with Java programs.
- The
Java IO for the contest site appears not to be what you all expect.
- For
readability you need to declare variables up top – even though Java, C++
and C let you declare them anywhere.
- 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.
- Remember
DeMorgan’s laws
- NOT(A
AND B) = NOT (A) OR NOT(B)
- NOT(A
OR B) = NOT(A) AND NOT(B)
- Documentation
is woefully inadequate.
- Comments
detailing the algorithm (what you are doing) should be written before
you write any code
- 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.
-