Turing Coding round
Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2025-02-10Added By Anonymous
Source: Link
Company: Turing
Role: unknown
Interview Stage: Coding Round
Location: unknown
Year: unknown
Original Experience:
I recently appeared for the Turing coding round, where I encountered the following problem. Could anyone provide a link to this question if it is available on any platform for practice? Problem Statement: You are given an m x n matrix. Your task is to determine the minimum number of changes required to modify the matrix so that it satisfies the following conditions: Vertical Equality: For every valid i and j, the condition matrix[i][j] == matrix[i+1][j] must hold, where i ranges from 0 to m-2 and j ranges from 0 to n-1. Horizontal Inequality: For every valid i and j, the condition matrix[i][j] != matrix[i][j+1] must hold, where i ranges from 0 to m-1 and j ranges from 0 to n-2. If this problem exists on any online coding platform, please share the link so I can practice it.
Role: unknown
Interview Stage: Coding Round
Location: unknown
Year: unknown
Original Experience:
I recently appeared for the Turing coding round, where I encountered the following problem. Could anyone provide a link to this question if it is available on any platform for practice? Problem Statement: You are given an m x n matrix. Your task is to determine the minimum number of changes required to modify the matrix so that it satisfies the following conditions: Vertical Equality: For every valid i and j, the condition matrix[i][j] == matrix[i+1][j] must hold, where i ranges from 0 to m-2 and j ranges from 0 to n-1. Horizontal Inequality: For every valid i and j, the condition matrix[i][j] != matrix[i][j+1] must hold, where i ranges from 0 to m-1 and j ranges from 0 to n-2. If this problem exists on any online coding platform, please share the link so I can practice it.