Halloween Sale
Unlock all premium questions for over 30% off
Set Even Parity Bit
Easy
Question
You receive one byte (8 bits) written as a string. Change it so that the count of "1" bits becomes even, and do it by touching nothing except the most significant bit (MSB). The MSB is the bit furthest to the left, the one worth the most in the byte's value; in "01001110", for instance, it is the leading "0".
...
Asked at:Microsoft
More Microsoft interview questions
- Design Recent Files Trackereasy
- Build the Longest Spike Sequencemedium
- Lowercase Before Uppercase Letter Countmedium
- Minimum Adjacent Swaps for Ball Groupingmedium
- Valid Clock Time Combinationsmedium
- Office Gift Delivery Schedulerhard
- Recent Search History Systemhard
- Largest Shared BST Valuemedium
OfferRetriever
Master technical interviews with real questions from top companies. Build your confidence and career.
LEGAL
© 2026 Purple Business Holdings LLC. All rights reserved. See Terms of Service.