# Binary Indexed Tree DSA Problems

> 38 Binary Indexed Tree coding problems for placements and interviews, sorted easiest first, with hints and company tags. Free practice on InternHack.

Canonical: https://www.internhack.in/learn/dsa/binary-indexed-tree
Last updated: 2026-11-28

38 binary indexed tree problems for coding interviews and campus placements, with hints and company tags. Below are all 38: 0 easy, 11 medium and 27 hard. Practise them free on InternHack and track what you have solved.

## Binary Indexed Tree problems, easiest first

1. [Count Number of Rectangles Containing Each Point](https://www.internhack.in/learn/dsa/problem/count-number-of-rectangles-containing-each-point) (Medium)
2. [Count Number of Teams](https://www.internhack.in/learn/dsa/problem/count-number-of-teams) (Medium)
3. [Count Subarrays With More Ones Than Zeros](https://www.internhack.in/learn/dsa/problem/count-subarrays-with-more-ones-than-zeros) (Medium)
4. [Longest Uploaded Prefix](https://www.internhack.in/learn/dsa/problem/longest-uploaded-prefix) (Medium)
5. [Maximum Area Rectangle With Point Constraints I](https://www.internhack.in/learn/dsa/problem/maximum-area-rectangle-with-point-constraints-i) (Medium)
6. [Maximum Profitable Triplets With Increasing Prices I](https://www.internhack.in/learn/dsa/problem/maximum-profitable-triplets-with-increasing-prices-i) (Medium)
7. [Number of Longest Increasing Subsequence](https://www.internhack.in/learn/dsa/problem/number-of-longest-increasing-subsequence) (Medium)
8. [Queries on a Permutation With Key](https://www.internhack.in/learn/dsa/problem/queries-on-a-permutation-with-key) (Medium)
9. [Queue Reconstruction by Height](https://www.internhack.in/learn/dsa/problem/queue-reconstruction-by-height) (Medium)
10. [Range Sum Query - Mutable](https://www.internhack.in/learn/dsa/problem/range-sum-query-mutable) (Medium)
11. [Range Sum Query 2D - Mutable](https://www.internhack.in/learn/dsa/problem/range-sum-query-2d-mutable) (Medium)
12. [Block Placement Queries](https://www.internhack.in/learn/dsa/problem/block-placement-queries) (Hard)
13. [Booking Concert Tickets in Groups](https://www.internhack.in/learn/dsa/problem/booking-concert-tickets-in-groups) (Hard)
14. [Count Good Triplets in an Array](https://www.internhack.in/learn/dsa/problem/count-good-triplets-in-an-array) (Hard)
15. [Count Increasing Quadruplets](https://www.internhack.in/learn/dsa/problem/count-increasing-quadruplets) (Hard)
16. [Count of Range Sum](https://www.internhack.in/learn/dsa/problem/count-of-range-sum) (Hard)
17. [Count of Smaller Numbers After Self](https://www.internhack.in/learn/dsa/problem/count-of-smaller-numbers-after-self) (Hard)
18. [Count the Number of K-Big Indices](https://www.internhack.in/learn/dsa/problem/count-the-number-of-k-big-indices) (Hard)
19. [Create Sorted Array through Instructions](https://www.internhack.in/learn/dsa/problem/create-sorted-array-through-instructions) (Hard)
20. [Distribute Elements Into Two Arrays II](https://www.internhack.in/learn/dsa/problem/distribute-elements-into-two-arrays-ii) (Hard)
21. [Find Building Where Alice and Bob Can Meet](https://www.internhack.in/learn/dsa/problem/find-building-where-alice-and-bob-can-meet) (Hard)
22. [Find the Longest Valid Obstacle Course at Each Position](https://www.internhack.in/learn/dsa/problem/find-the-longest-valid-obstacle-course-at-each-position) (Hard)
23. [K Empty Slots](https://www.internhack.in/learn/dsa/problem/k-empty-slots) (Hard)
24. [Longest Increasing Subsequence II](https://www.internhack.in/learn/dsa/problem/longest-increasing-subsequence-ii) (Hard)
25. [Make Array Empty](https://www.internhack.in/learn/dsa/problem/make-array-empty) (Hard)
26. [Maximum Area Rectangle With Point Constraints II](https://www.internhack.in/learn/dsa/problem/maximum-area-rectangle-with-point-constraints-ii) (Hard)
27. [Maximum Balanced Subsequence Sum](https://www.internhack.in/learn/dsa/problem/maximum-balanced-subsequence-sum) (Hard)
28. [Maximum Number of Intersections on the Chart](https://www.internhack.in/learn/dsa/problem/maximum-number-of-intersections-on-the-chart) (Hard)
29. [Maximum Profitable Triplets With Increasing Prices II](https://www.internhack.in/learn/dsa/problem/maximum-profitable-triplets-with-increasing-prices-ii) (Hard)
30. [Minimum Number of Moves to Make Palindrome](https://www.internhack.in/learn/dsa/problem/minimum-number-of-moves-to-make-palindrome) (Hard)
31. [Number of Pairs Satisfying Inequality](https://www.internhack.in/learn/dsa/problem/number-of-pairs-satisfying-inequality) (Hard)
32. [Online Majority Element In Subarray](https://www.internhack.in/learn/dsa/problem/online-majority-element-in-subarray) (Hard)
33. [Peaks in Array](https://www.internhack.in/learn/dsa/problem/peaks-in-array) (Hard)
34. [Reverse Pairs](https://www.internhack.in/learn/dsa/problem/reverse-pairs) (Hard)
35. [Shortest Path in a Weighted Tree](https://www.internhack.in/learn/dsa/problem/shortest-path-in-a-weighted-tree) (Hard)
36. [Subarrays Distinct Element Sum of Squares II](https://www.internhack.in/learn/dsa/problem/subarrays-distinct-element-sum-of-squares-ii) (Hard)
37. [Sum of Beautiful Subsequences](https://www.internhack.in/learn/dsa/problem/sum-of-beautiful-subsequences) (Hard)
38. [The Skyline Problem](https://www.internhack.in/learn/dsa/problem/the-skyline-problem) (Hard)

## Companies that ask binary indexed tree problems

- [Google](https://www.internhack.in/learn/dsa/companies/google): 23 of these problems
- [Amazon](https://www.internhack.in/learn/dsa/companies/amazon): 16 of these problems
- [Meta](https://www.internhack.in/learn/dsa/companies/meta): 11 of these problems
- [Bloomberg](https://www.internhack.in/learn/dsa/companies/bloomberg): 8 of these problems
- [Microsoft](https://www.internhack.in/learn/dsa/companies/microsoft): 7 of these problems
- [IBM](https://www.internhack.in/learn/dsa/companies/ibm): 4 of these problems
- [Goldman Sachs](https://www.internhack.in/learn/dsa/companies/goldman-sachs): 3 of these problems
- [Autodesk](https://www.internhack.in/learn/dsa/companies/autodesk): 2 of these problems
- [Uber](https://www.internhack.in/learn/dsa/companies/uber): 2 of these problems
- [Infosys](https://www.internhack.in/learn/dsa/companies/infosys): 2 of these problems
- [UKG](https://www.internhack.in/learn/dsa/companies/ukg): 2 of these problems
- [Siemens](https://www.internhack.in/learn/dsa/companies/siemens): 2 of these problems

## Before your interview

Most resumes are filtered by software before a recruiter reads them. [Check your resume ATS score free](https://www.internhack.in/ats-score/try), no signup needed.

## Other DSA topics

- [Array](https://www.internhack.in/learn/dsa/array) (1869)
- [String](https://www.internhack.in/learn/dsa/string) (775)
- [Hash Table](https://www.internhack.in/learn/dsa/hash-table) (708)
- [Math](https://www.internhack.in/learn/dsa/math) (564)
- [Dynamic Programming](https://www.internhack.in/learn/dsa/dynamic-programming) (557)
- [Sorting](https://www.internhack.in/learn/dsa/sorting) (464)
- [Greedy](https://www.internhack.in/learn/dsa/greedy) (407)
- [Depth-First Search](https://www.internhack.in/learn/dsa/depth-first-search) (314)
- [Binary Search](https://www.internhack.in/learn/dsa/binary-search) (298)
- [Matrix](https://www.internhack.in/learn/dsa/matrix) (246)
- [Breadth-First Search](https://www.internhack.in/learn/dsa/breadth-first-search) (245)
- [Bit Manipulation](https://www.internhack.in/learn/dsa/bit-manipulation) (238)
- [Tree](https://www.internhack.in/learn/dsa/tree) (235)
- [Two Pointers](https://www.internhack.in/learn/dsa/two-pointers) (217)
- [Prefix Sum](https://www.internhack.in/learn/dsa/prefix-sum) (204)
- [Database](https://www.internhack.in/learn/dsa/database) (197)
- [Heap (Priority Queue)](https://www.internhack.in/learn/dsa/heap-priority-queue) (196)
- [Simulation](https://www.internhack.in/learn/dsa/simulation) (177)
- [Counting](https://www.internhack.in/learn/dsa/counting) (174)
- [Binary Tree](https://www.internhack.in/learn/dsa/binary-tree) (169)

## Related

- [Home](https://www.internhack.in/)
- [Learn](https://www.internhack.in/learn)
- [DSA](https://www.internhack.in/learn/dsa)
