Coding Test Guidelines

  1. Listen: usually all the information in the question is useful
  2. Example: make examples larger, avoid special cases
  3. Brute force: better to have brute force than nothing at all; don't necessarily code it, maybe just state the runtime
  4. Optimise
  5. Walk through your algorithm
  6. Code
  7. Test: use small test cases, then edge cases
  8. Analyse and optimise: check for loops, maths, walk through the code, not the algorithm

Whiteboard

B.U.D

Space / time tradeoffs