A Python self-check tests a selected operation contract through twelve questions with explanations.
Review the related lessons
- Python edit distance: rolling rows for insert, delete and replace
- Python sliding window: longest span without repeated symbols
- Python Bellman-Ford: negative edges and reachable negative cycles
- Python Kruskal: minimum spanning forests and disconnected graphs
- Python segment tree: point replacement and half-open range sums
- Python BST deletion: replace a two-child node with its successor
- Pytest fixtures: isolated files and parameterized rejection tests
- Mypy static checks: annotations do not validate runtime payloads
- Python unittest.mock: inject a collaborator failure before publication
Common Mistakes
A correct local answer is not a deployment guarantee. Read the input, ownership and failure clauses before adapting the program. Results stay in this browser.
