Online Customer Support Interview Questions

7,423 online customer support interview questions shared by candidates

Second Question: Given a 2D matrix of m rows and n columns. A cleaner robot is placed at position (0,0). The robot moves in the forward direction cleaning the tiles ('.') until an obstacle ('#') or the border of the matrix is encountered. It then turns around in clockwise direction and moves forward until another obstacle is encountered. Following the above rules, the robot forms a cleaning path for itself. Output the maximum number of tiles the robot can clean for a given matrix. Constraints: arr[i][j]=='#' || arr[i][j] =='.' 1<=m<=20, 1<=n<=20 The starting point will always be a tile ('.')
avatar

Online Test

Interviewed at American Express

4.1
Oct 19, 2021

Second Question: Given a 2D matrix of m rows and n columns. A cleaner robot is placed at position (0,0). The robot moves in the forward direction cleaning the tiles ('.') until an obstacle ('#') or the border of the matrix is encountered. It then turns around in clockwise direction and moves forward until another obstacle is encountered. Following the above rules, the robot forms a cleaning path for itself. Output the maximum number of tiles the robot can clean for a given matrix. Constraints: arr[i][j]=='#' || arr[i][j] =='.' 1<=m<=20, 1<=n<=20 The starting point will always be a tile ('.')

Viewing 5921 - 5930 interview questions

See Interview Questions for Similar Jobs

Glassdoor has 7,423 interview questions and reports from Online customer support interviews. Prepare for your interview. Get hired. Love your job.