Practice Python
Every practice exercise of the course in one place. Filter by difficulty or topic, pick one and solve it in the full-screen editor.
- 493exercises
- 123Easy
- 261Medium
- 109Hard
Challenge of the day · 30 Nov
Count XML tags
Your progress by difficulty
to see your progress by difficulty.
Sign in109 exercises · Page 3 of 5
Connected components
Data structures
Hard
Task priority queue
Data structures
Hard
Lowest common ancestor
Advanced graphs and trees
Hard
Weighted shortest path (Dijkstra)
Advanced graphs and trees
Hard
Topological order
Advanced graphs and trees
Hard
Merging groups
Advanced graphs and trees
Hard
Minimum spanning tree
Advanced graphs and trees
Hard
Is it bipartite?
Advanced graphs and trees
Hard
Autocomplete with a trie
Advanced graphs and trees
Hard
Validate a search tree
Advanced graphs and trees
Hard
Binary search counting steps
Complexity and efficiency
Hard
Two-number sum
Complexity and efficiency
Hard
Bubble sort counting steps
Complexity and efficiency
Hard
Maximum subarray
Complexity and efficiency
Hard
Fibonacci with memoization
Complexity and efficiency
Hard
Coin change
Complexity and efficiency
Hard
Read a file of unknown encoding
Text Files
Hard
Directory tree
File system
Hard
Organize by extension
File system
Hard
Duplicate files
File system
Hard
Binary records with struct
Binary Files
Hard
Exception groups
Error and Exception Handling
Hard
Retries with a custom error
Error and Exception Handling
Hard
Transaction with rollback
Context managers
Hard