Matrices and grids interview questions
4 questions on this data structure, most asked first. Reported by candidates in public interview write-ups and reworded by Scrivio. How the reports are counted
Your progress: 0 of 4 done, 0 saved
Search for a value in a matrix whose rows and columns are sorted.
Reported 45 times
Read the solutionBinary searchExample sources
3 of the write-ups counted: geeksforgeeks.org 2020, geeksforgeeks.org 2020, geeksforgeeks.org 2020
Print the elements of a matrix in spiral order.
Reported 33 times
Read the solutionMatrices and simulationExample sources
3 of the write-ups counted: geeksforgeeks.org 2017, geeksforgeeks.org 2018, geeksforgeeks.org 2013
Rotate a square matrix by 90 degrees.
Reported 22 times
Read the solutionMatrices and simulationExample sources
3 of the write-ups counted: geeksforgeeks.org 2019, geeksforgeeks.org 2019, geeksforgeeks.org 2020
In a binary matrix whose rows are sorted, find the row with the most 1s.
Reported 16 times
Read the solutionBinary searchExample sources
3 of the write-ups counted: geeksforgeeks.org 2016, geeksforgeeks.org 2024, geeksforgeeks.org 2012