Google phone interview

Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2025-03-30Added By Anonymous
Source:Β Link
🧭 Experience: unknown
βœ… Outcome: unknown
πŸ’° Compensation: unknown
πŸ“ Location: unknown
🏒 Company: Google
πŸŽ“ Education: unknown
🎁 Benefits: unknown
πŸ“… Offer Date: unknown

I was definitely not prepared, have no hopes of moving to onsites. Will prepare and give next year.

You're working on a data storage system that represents information in a binary grid. For error correction and symmetry, every row and column must be a palindrome.

Additionally, due to hardware constraints, the total number of 1s must be divisible by 4.

You’re allowed to flip any bits (0 -> 1). Return the minimum number of flips needed to make the grid valid.

grid = [[1, 0, 1],[0, 1, 0],[1, 0, 0]]

4
Comments