# Brainteaser DSA Problems

> 16 Brainteaser 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/brainteaser
Last updated: 2026-11-28

16 brainteaser problems for coding interviews and campus placements, with hints and company tags. Below are all 16: 2 easy, 13 medium and 1 hard. Practise them free on InternHack and track what you have solved.

## Brainteaser problems, easiest first

1. [Divisor Game](https://www.internhack.in/learn/dsa/problem/divisor-game) (Easy)
2. [Nim Game](https://www.internhack.in/learn/dsa/problem/nim-game) (Easy)
3. [Airplane Seat Assignment Probability](https://www.internhack.in/learn/dsa/problem/airplane-seat-assignment-probability) (Medium)
4. [Bitwise OR of All Subsequence Sums](https://www.internhack.in/learn/dsa/problem/bitwise-or-of-all-subsequence-sums) (Medium)
5. [Bitwise XOR of All Pairings](https://www.internhack.in/learn/dsa/problem/bitwise-xor-of-all-pairings) (Medium)
6. [Bulb Switcher](https://www.internhack.in/learn/dsa/problem/bulb-switcher) (Medium)
7. [Construct the Longest New String](https://www.internhack.in/learn/dsa/problem/construct-the-longest-new-string) (Medium)
8. [Count the Number of Computer Unlocking Permutations](https://www.internhack.in/learn/dsa/problem/count-the-number-of-computer-unlocking-permutations) (Medium)
9. [Last Moment Before All Ants Fall Out of a Plank](https://www.internhack.in/learn/dsa/problem/last-moment-before-all-ants-fall-out-of-a-plank) (Medium)
10. [Longest Subarray With Maximum Bitwise AND](https://www.internhack.in/learn/dsa/problem/longest-subarray-with-maximum-bitwise-and) (Medium)
11. [Minimum Operations to Make the Integer Zero](https://www.internhack.in/learn/dsa/problem/minimum-operations-to-make-the-integer-zero) (Medium)
12. [Movement of Robots](https://www.internhack.in/learn/dsa/problem/movement-of-robots) (Medium)
13. [Moving Stones Until Consecutive](https://www.internhack.in/learn/dsa/problem/moving-stones-until-consecutive) (Medium)
14. [Strictly Palindromic Number](https://www.internhack.in/learn/dsa/problem/strictly-palindromic-number) (Medium)
15. [Vowels Game in a String](https://www.internhack.in/learn/dsa/problem/vowels-game-in-a-string) (Medium)
16. [Chalkboard XOR Game](https://www.internhack.in/learn/dsa/problem/chalkboard-xor-game) (Hard)

## Companies that ask brainteaser problems

- [Google](https://www.internhack.in/learn/dsa/companies/google): 13 of these problems
- [Meta](https://www.internhack.in/learn/dsa/companies/meta): 10 of these problems
- [Amazon](https://www.internhack.in/learn/dsa/companies/amazon): 8 of these problems
- [Bloomberg](https://www.internhack.in/learn/dsa/companies/bloomberg): 5 of these problems
- [Microsoft](https://www.internhack.in/learn/dsa/companies/microsoft): 5 of these problems
- [TCS](https://www.internhack.in/learn/dsa/companies/tcs): 2 of these problems
- [Visa](https://www.internhack.in/learn/dsa/companies/visa): 1 of these problems
- [Adobe](https://www.internhack.in/learn/dsa/companies/adobe): 1 of these problems
- [Garena](https://www.internhack.in/learn/dsa/companies/garena): 1 of these problems
- [Hashedin](https://www.internhack.in/learn/dsa/companies/hashedin): 1 of these problems
- [Microstrategy](https://www.internhack.in/learn/dsa/companies/microstrategy): 1 of these problems
- [Toptal](https://www.internhack.in/learn/dsa/companies/toptal): 1 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)
