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
β 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