Python heap problems
Always know the smallest or largest item with heaps and heapq, on Python problems with tests.
Beginner
Intermediate
Advanced
- 371. Pick Projects to Grow CapitalStart small, pick projects wisely, and finish as rich as you can130 XP25 min
- 395. Stock Price TrackerPrices arrive late and out of order, and some of them are wrong140 XP30 min
- 419. Busiest Meeting RoomMeetings pile up, rooms run out, and one room ends up the busiest160 XP35 min
- 424. Median of Every WindowThe middle value of a moving window, one step at a time160 XP35 min
- 428. City SkylineSeen from far away, a crowd of buildings becomes a single outline170 XP40 min
Expert
Other topics
- Python Basics
- Strings
- Lists
- Dictionaries and sets
- Loops
- Functions
- Math
- Sorting and searching
- Two pointers
- Sliding window
- Stacks and queues
- Recursion and backtracking
- Dynamic programming
- Greedy
- Graphs
- Trees
- Bit manipulation
- Classes
- Iterators and generators
- Parsing
- Simulation
- Python idioms
- Regular expressions
- Codes and ciphers
- Working with data
- Grids and matrices
- Geometry
- Games and puzzles
- Data structures
Or see every challenge, with study plans, today's challenge and duels.