Binary Indexed Tree LeetCode Problems: All 32,
With Python Solutions
Every problem in this library that LeetCode tags Binary Indexed Tree. 25 of them carry a complete Python solution, a worked example and the time and space complexity of the approach.
- Easy
- 0
- Medium
- 10
- Hard
- 22
Binary Indexed Tree problems by difficulty
Problems with a complete Python solution are listed first, then by ascending problem number.
Medium (10)
| No. | Problem | Topics |
|---|---|---|
| 0307 | Range Sum Query - Mutable | |
| 0406 | Queue Reconstruction by Height | |
| 0673 | Number of Longest Increasing Subsequence | |
| 1395 | Count Number of Teams | |
| 1409 | Queries on a Permutation With Key | |
| 2250 | Count Number of Rectangles Containing Each Point | |
| 2424 | Longest Uploaded Prefix | |
| 0308 | Range Sum Query 2D - MutablePremium | |
| 2031 | Count Subarrays With More Ones Than ZerosPremium | |
| 2907 | Maximum Profitable Triplets With Increasing Prices IPremium |
Hard (22)
Eyes only
When the Binary Indexed Tree 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