Fall SalePremium questions, over 25% offUnlock all premium questions for over 25% 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
- Office Gift Delivery Schedulerhard
- Group Elements by Common Propertiesmedium
- Largest Shared BST Valuemedium
- Minimum Coins to Cover All Amountsmedium
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.