Presentation is loading. Please wait.

Presentation is loading. Please wait.

Contest strategy.

Similar presentations


Presentation on theme: "Contest strategy."— Presentation transcript:

1 Contest strategy

2 Contents Reading Planning Coding Testing Debugging Time management

3 Reading Read all the problems before doing any coding Make notes
How long should you spend on reading?

4 Planning Don't implement as soon as you have one solution
Estimate the big-O time Estimate the memory Check that your solution works Implement the simplest possible solution How long do you spend on planning? Mathematical modelling?

5 Coding Don't try to be too clever When do you go back and plan?

6 Testing Unit testing White-box testing Regression testing
Speed testing Boundary cases and special cases Comparative testing Compiler help: -Wall; -Wall -O2; -ftrapv Code review Assertions: assert(condition); How long do you spend on testing?

7 Debugging Learn to use a debugger What do you do when you find a bug?
When do you cut your losses and give up?

8 Time management


Download ppt "Contest strategy."

Similar presentations


Ads by Google