Bitwise Interview Questions
4 interview questions in our bank cover Bitwise, most of them Coding & Leetcode-style Questions. They average 2.5/5 difficulty — medium — and each one was reported by a candidate after a real interview. Companies known to ask about Bitwise: Goldman Sachs, DRW, Headlands Technologies.
Practice these on the problems board →Companies that ask about Bitwise
Question mix
- Coding & Leetcode-style Questions4
Difficulty
- 2/5 — easy2
- 3/5 — medium2
Bitwise questions at Goldman Sachs
Bitwise XOR Subsequences
3/5Find the longest subsequence whose every neighbouring pair combines under bitwise exclusive-or to a fixed value. This Goldman Sachs question hides a neat structural fact: the constraint forces the chosen values to alternate between exactly two numbers, so the search collapses to counting alternations rather than exploring subsequences. You will recognise that a single element is always acceptable, handle the special case where the target is zero, and keep the scan linear. The complete problem and the reference solution are available to subscribers.
Coding & Leetcode-style QuestionsGoldman SachsBitwise XOR Subsequences
3/5Find the longest contiguous stretch of an array whose combination under bitwise exclusive-or equals a target. This Goldman Sachs question is the prefix-xor-and-hash-map pattern: because the operation is its own inverse, the first occurrence of each prefix value is what gives the longest span. You will store first occurrences only, seed the map for the empty prefix, and handle a target of zero. A subscription unlocks the complete problem and the model solution.
Coding & Leetcode-style QuestionsGoldman Sachs
More Bitwise questions
Integer AND Operation
2/5This straightforward coding exercise, reported from DRW interviews, challenges you to perform basic bitwise operations on numerical inputs and format the resulting output correctly. Designed to test fundamental computer science concepts, the problem evaluates how well candidates handle binary transformations and standard input-output parsing. It serves as an excellent warm-up for bit manipulation interviews. Access the full problem details and a verified model solution through a paid subscription.
Coding & Leetcode-style QuestionsDRWSimulate CPU Register with Bitwise Operations
2/5Encountered frequently in technical screenings for Headlands Technologies, this task involves debugging and implementing fundamental binary manipulation utilities to emulate hardware registers. You will write routines to modify, reset, invert, and inspect specific binary digits within an integer value. This exercise strengthens your grasp of low-level programming concepts, bitwise arithmetic, and mask operations. Gain full access to the problem requirements and complete code walkthrough by securing a subscription.
Coding & Leetcode-style QuestionsHeadlands Technologies
Studied alongside
Bitwise interview FAQ
- How many Bitwise interview questions are there?
- 4 reported questions, mostly Coding & Leetcode-style Questions.
- Which companies ask Bitwise questions?
- Goldman Sachs (2), DRW (1), Headlands Technologies (1).
- How hard are Bitwise questions?
- They average 2.5 out of 5: 2 at 2/5, 2 at 3/5.