Your turn
Why it matters:
1
Output
Pseudocode
Try to plan it yourself before opening this.
Hints
Solution
Interview timer
20:00
When you freeze
- Say the inputs, outputs and their shapes out loud.
- Work one tiny example by hand.
- Write the function signature and a comment per step.
- Fill in each comment with code.
- Test on your example, then edge cases.