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)

Medium problems
No.Problem
0307Range Sum Query - Mutable
0406Queue Reconstruction by Height
0673Number of Longest Increasing Subsequence
1395Count Number of Teams
1409Queries on a Permutation With Key
2250Count Number of Rectangles Containing Each Point
2424Longest Uploaded Prefix
0308Range Sum Query 2D - MutablePremium
2031Count Subarrays With More Ones Than ZerosPremium
2907Maximum Profitable Triplets With Increasing Prices IPremium

Hard (22)

Hard problems
No.Problem
0218The Skyline Problem
0315Count of Smaller Numbers After Self
0327Count of Range Sum
0493Reverse Pairs
1157Online Majority Element In Subarray
1505Minimum Possible Integer After at Most K Adjacent Swaps On Digits
1649Create Sorted Array through Instructions
1964Find the Longest Valid Obstacle Course at Each Position
2179Count Good Triplets in an Array
2193Minimum Number of Moves to Make Palindrome
2286Booking Concert Tickets in Groups
2407Longest Increasing Subsequence II
2426Number of Pairs Satisfying Inequality
2552Count Increasing Quadruplets
2659Make Array Empty
2736Maximum Sum Queries
2926Maximum Balanced Subsequence Sum
2940Find Building Where Alice and Bob Can Meet
0683K Empty SlotsPremium
2519Count the Number of K-Big IndicesPremium
2916Subarrays Distinct Element Sum of Squares II
2921Maximum Profitable Triplets With Increasing Prices IIPremium

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.