Data Stream LeetCode Problems: All 21,
With Python Solutions
Every problem in this library that LeetCode tags Data Stream. 14 of them carry a complete Python solution, a worked example and the time and space complexity of the approach.
- Easy
- 6
- Medium
- 9
- Hard
- 6
Data Stream problems by difficulty
Problems with a complete Python solution are listed first, then by ascending problem number.
Easy (6)
| No. | Problem | Topics |
|---|---|---|
| 0703 | Kth Largest Element in a Stream | |
| 0933 | Number of Recent Calls | |
| 1656 | Design an Ordered Stream | |
| 0170 | Two Sum III - Data structure designPremium | |
| 0346 | Moving Average from Data StreamPremium | |
| 0359 | Logger Rate LimiterPremium |
Medium (9)
| No. | Problem | Topics |
|---|---|---|
| 0901 | Online Stock Span | |
| 1352 | Product of the Last K Numbers | |
| 1472 | Design Browser History | |
| 1670 | Design Front Middle Back Queue | |
| 2034 | Stock Price Fluctuation | |
| 2526 | Find Consecutive Integers from a Data Stream | |
| 0362 | Design Hit CounterPremium | |
| 1429 | First Unique NumberPremium | |
| 1500 | Design a File Sharing SystemPremium |
Hard (6)
| No. | Problem | Topics |
|---|---|---|
| 0295 | Find Median from Data Stream | |
| 0352 | Data Stream as Disjoint Intervals | |
| 1032 | Stream of Characters | |
| 1825 | Finding MK Average | |
| 2102 | Sequentially Ordinal Rank Tracker | |
| 0642 | Design Search Autocomplete SystemPremium |
Eyes only
When the Data Stream problem arrives live.
In the live round, Stealth Interview reads the problem off your screen, returns a working solution with a step-by-step explanation and its time and space complexity, and transcribes what the interviewer says. It's a desktop app for macOS and Windows, invisible to screen sharing.
Keep exploring
Other topics
- Array1,569
- String672
- Hash Table588
- Math485
- Dynamic Programming481
- Sorting392
- Greedy346
- Depth-First Search289
- Binary Search253
- Database249
- Tree225
- Breadth-First Search223
- Matrix216
- Two Pointers201
- Bit Manipulation194
- Binary Tree174
- Heap (Priority Queue)163
- Prefix Sum157
- Stack157
- Simulation144
- Graph138
- Counting126
- Design122
- Sliding Window116