Google Bit Manipulation Coding Interview Questions
31 bit manipulation coding problems are tagged as asked at Google in interviews and online assessments reported by candidates. By difficulty they split into 10 basic, 18 intermediate and 3 advanced. The topics they most often combine with are Array, Math, String, Stack.
Reported questions change over time and are not a guarantee of what you will be asked, so use the list to see which patterns Google tends to test. For each problem, practise explaining your approach, its time and space cost and the edge cases before you write the code; every problem opens in an editor that runs your code against test cases.
Coding problems
- Number of One Bits (Basic)
- Counting Bits (Intermediate)
- Hamming Distance (Basic)
- Reverse Integer (Intermediate)
- Decode XORed Array (Basic)
- Counting Bits (Basic)
- Maximum Width of Binary Tree (Intermediate)
- Sum of Root-to-Leaf Binary Numbers (Basic)
- String to Integer (Intermediate)
- Evaluate Reverse Polish Notation (Intermediate)
- Basic Calculator (Advanced)
- Basic Calculator II (Intermediate)
- Super Ugly Number (Intermediate)
- Gray Code (Intermediate)
- Complement of Base 10 Integer (Basic)
- Divide Two Integers (Intermediate)
- Chalkboard XOR Game (Intermediate)
- Parse Lisp Expression (Advanced)
- Basic Calculator III (Advanced)
- Longest Nice Subarray (Intermediate)
- XOR Queries of a Subarray (Intermediate)
- Score After Flipping Matrix (Intermediate)
- Reverse Bits (Basic)
- Bitwise ORs of Subarrays (Intermediate)
- Minimum Flips to Make a OR b Equal to c (Intermediate)
- Binary Number With Alternating Bits (Basic)
- Concatenation of Consecutive Binary Numbers (Intermediate)
- Minimize XOR (Intermediate)
- XOR Operation in an Array (Basic)
- Neighboring Bitwise XOR (Basic)
- Bitwise XOR of All Pairings (Intermediate)
Related
- Google coding interview questions
- Bit Manipulation problems
- Google basic problems
- Google intermediate problems
- Google advanced problems
- Company interview roadmaps
- All interview guides
Frequently asked questions
How should I use the Google problem list?
Start with the basic problems, then the intermediate and advanced ones, and note which topics repeat. Solve each under a timer, then read the explanation.
Are these the exact Google interview questions?
They are problems candidates reported being asked. Companies rotate questions, so use them to learn the patterns, not to predict the exact question.