Bitmask DSA Problems

48 bitmask problems for coding interviews and campus placements, with hints and company tags. Below are all 48: 0 easy, 17 medium and 31 hard. Practise them free on InternHack and track what you have solved.

Bitmask problems, easiest first

  1. Android Unlock Patterns (Medium)
  2. Beautiful Arrangement (Medium)
  3. Campus Bikes II (Medium)
  4. Can I Win (Medium)
  5. Count the Number of Square-Free Subsets (Medium)
  6. Fair Distribution of Cookies (Medium)
  7. Matchsticks to Square (Medium)
  8. Maximum Compatibility Score Sum (Medium)
  9. Maximum Product of the Length of Two Palindromic Subsequences (Medium)
  10. Minimum Moves to Spread Stones Over Grid (Medium)
  11. Minimum Number of Lines to Cover Points (Medium)
  12. Minimum Number of Work Sessions to Finish the Tasks (Medium)
  13. Minimum Time to Break Locks I (Medium)
  14. Number of Self-Divisible Permutations (Medium)
  15. Number of Ways to Build Sturdy Brick Wall (Medium)
  16. Partition to K Equal Sum Subsets (Medium)
  17. Shopping Offers (Medium)
  18. Closest Subsequence Sum (Hard)
  19. Concatenated Divisibility (Hard)
  20. Count Paths That Can Form a Palindrome in a Tree (Hard)
  21. Distribute Repeating Integers (Hard)
  22. Find Minimum Time to Finish All Jobs (Hard)
  23. Find Sum of Array Product of Magical Sequences (Hard)
  24. Find the Minimum Cost Array Permutation (Hard)
  25. Find the Shortest Superstring (Hard)
  26. Maximize Grid Happiness (Hard)
  27. Maximize Score After N Operations (Hard)
  28. Maximize the Number of Partitions After Operations (Hard)
  29. Maximum AND Sum of Array (Hard)
  30. Maximum Good Subtree Score (Hard)
  31. Maximum Number of Groups Getting Fresh Donuts (Hard)
  32. Maximum Number of Moves to Kill All Pawns (Hard)
  33. Maximum Score Words Formed by Letters (Hard)
  34. Maximum Students Taking Exam (Hard)
  35. Minimum Cost to Connect Two Groups of Points (Hard)
  36. Minimum Incompatibility (Hard)
  37. Minimum Time to Kill All Monsters (Hard)
  38. Minimum XOR Sum of Two Arrays (Hard)
  39. Number of Squareful Arrays (Hard)
  40. Number of Ways to Wear Different Hats to Each Other (Hard)
  41. Optimal Account Balancing (Hard)
  42. Parallel Courses II (Hard)
  43. Partition Array Into Two Arrays to Minimize Sum Difference (Hard)
  44. Shortest Path Visiting All Nodes (Hard)
  45. Smallest Sufficient Team (Hard)
  46. Split Array With Same Average (Hard)
  47. Stickers to Spell Word (Hard)
  48. The Number of Good Subsets (Hard)

Companies that ask bitmask 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