Standard library only (Python 3.10+). All five tasks are in solutions.py.
python solutions.pyThis runs the smoke-test suite at the bottom of the file and prints a result for each task.
| # | Function / Class | Topic |
|---|---|---|
| 1 | most_common_word |
String normalisation, collections |
| 2 | merge_intervals |
Sorting, greedy algorithm |
| 3 | Logger |
OOP, data structure choice |
| 4 | fib_iterative / fib_memoized |
Debugging, recursion tradeoffs |
| 5 | group_anagrams |
Hashing, grouping |
Each function includes a docstring explaining the approach and any tradeoffs.