Binary Indexed Tree DSA Problems

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 (Medium)
  2. Count Number of Teams (Medium)
  3. Count Subarrays With More Ones Than Zeros (Medium)
  4. Longest Uploaded Prefix (Medium)
  5. Maximum Area Rectangle With Point Constraints I (Medium)
  6. Maximum Profitable Triplets With Increasing Prices I (Medium)
  7. Number of Longest Increasing Subsequence (Medium)
  8. Queries on a Permutation With Key (Medium)
  9. Queue Reconstruction by Height (Medium)
  10. Range Sum Query - Mutable (Medium)
  11. Range Sum Query 2D - Mutable (Medium)
  12. Block Placement Queries (Hard)
  13. Booking Concert Tickets in Groups (Hard)
  14. Count Good Triplets in an Array (Hard)
  15. Count Increasing Quadruplets (Hard)
  16. Count of Range Sum (Hard)
  17. Count of Smaller Numbers After Self (Hard)
  18. Count the Number of K-Big Indices (Hard)
  19. Create Sorted Array through Instructions (Hard)
  20. Distribute Elements Into Two Arrays II (Hard)
  21. Find Building Where Alice and Bob Can Meet (Hard)
  22. Find the Longest Valid Obstacle Course at Each Position (Hard)
  23. K Empty Slots (Hard)
  24. Longest Increasing Subsequence II (Hard)
  25. Make Array Empty (Hard)
  26. Maximum Area Rectangle With Point Constraints II (Hard)
  27. Maximum Balanced Subsequence Sum (Hard)
  28. Maximum Number of Intersections on the Chart (Hard)
  29. Maximum Profitable Triplets With Increasing Prices II (Hard)
  30. Minimum Number of Moves to Make Palindrome (Hard)
  31. Number of Pairs Satisfying Inequality (Hard)
  32. Online Majority Element In Subarray (Hard)
  33. Peaks in Array (Hard)
  34. Reverse Pairs (Hard)
  35. Shortest Path in a Weighted Tree (Hard)
  36. Subarrays Distinct Element Sum of Squares II (Hard)
  37. Sum of Beautiful Subsequences (Hard)
  38. The Skyline Problem (Hard)

Companies that ask binary indexed tree problems

Before your interview

Most resumes are filtered by software before a recruiter reads them. Check your resume ATS score free, no signup needed.

Other DSA topics