Python practice guides
Keep familiar coding patterns fresh with short, worked Python examples. Read the steps, then try typing a solution in GymType.
- Reverse a list · Lists
- Linear search · Searching
- Two Sum · Hash maps
- Valid palindrome · Two pointers
- Best time to buy and sell · Sliding window
- Maximum subarray · Common patterns
- Valid parentheses · Stacks
- Climbing stairs · Dynamic programming
- Decode nested repeats · Recursion
- Count N-Queens placements · Backtracking