Halloween Sale
Unlock all premium questions for over 30% off
Minimum Flips for Symmetric Grid
Medium
Question
Cells come in two colors, "B" for black and "W" for white, and they fill a grid of N rows with M cells each. We call a row or a column symmetric when it looks identical whether you read it forwards or backwards. A flip turns one cell to the opposite color, "B" into "W" or "W" into "B". Flip cells until every row and every column is symmetric. ...
Asked at:Microsoft
More Microsoft interview questions
- Largest Square from Mixed Tilesmedium
- Maximize Edge Label Sum in Graphmedium
- Set Even Parity Biteasy
- Design Recent Files Trackereasy
- Build the Longest Spike Sequencemedium
- Lowercase Before Uppercase Letter Countmedium
- Minimum Adjacent Swaps for Ball Groupingmedium
- Valid Clock Time Combinationsmedium
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.