Your goal: read working code, say exactly why it is slow, pick a faster idea for a reason,
and explain the new time and memory.
How this works (about 30 minutes)
- The editor opens with a correct function. The small tests pass; the last test is big.
- Say the complexity of the starter before you change it. Ask Nate about the input sizes.
- Make it fast. Run the tests. Tell Nate when you want him to look at your code.
- A follow-up changes how the data arrives. No hints unless you are stuck; each hint is counted.
- Your written report comes after.
What scores well
- Naming the bottleneck and its cost before touching the code
- Asking how big the input is and what the limits are
- Choosing the faster idea with a reason, and saying what it costs in memory
- Testing the edge cases: two numbers, ties, negative numbers
- Staying calm when the data changes shape
Tips
- Take Coding Coach · Big O first.