Top 50 Problems on Matrix/Grid Data Structure asked in SDE Interviews Read Courses Practice Improve Improve Improve Like Article Like Save Article Save Report issue Report A Matrix/Grid is a two-dimensional array that consists of rows and columns. It is an arrangement of elements in horizontal or vertical lines of entries. Here is the collection of the Top 50 list of frequently asked interviews question on Matrix/Grid in the SDE Interviews. Problems in this Article are divided into three Levels so that readers can practice according to the difficulty level step by step. To learn more about Matrix, please refer to the Tutorial on Matrix/Grid. Given below are the most frequently asked interview questions on Matrix: Easy Level Problems on Matrix/Grid Data Structure Rotate Matrix ElementsSort the given matrixTurn an image by 90-degreeProgram to multiply two matricesFind maximum element of each row in a matrixCount all sorted rows in a matrixCommon elements in all rows of a given matrixPrint matrix in snake patternSort a Matrix in all way increasing orderFind the row with maximum number of 1sEfficiently compute sums of diagonals of a matrixFind whether an array is subset of another arrayBoundary elements of a MatrixCheck given matrix is magic square or notMedium Level Problems on Matrix/Grid Data StructureSearch in a row-wise and column-wise sorted 2D arrayFind Peak Element in 2D matrixMatrix MedianRotate a matrix by 90 degree without using any extra space Rotate a Matrix by 180 degreeRotate the matrix right by K timesPrint a given matrix in spiral formZigzag (or diagonal) traversal of MatrixSpiral Traversal of MatrixSearch in a Row-wise and Column-wise Sorted MatrixFind the number of islandsBoolean Matrix QuestionCount number of islands in a binary matrixMaximum sum rectangle in a 2D matrixFlood Fill AlgorithmCount all possible paths from top left to bottom right of a m x n matrixFind the maximum sum path in a matrixRotate a matrix by 90 degreesMinimum steps to reach target by a KnightMinimum cost to fill given weight in a bagShortest path in a Binary MazeHard Level Problems on Matrix/Grid Data StructureMaximum size rectangle binary sub-matrix with all 1sFind the largest rectangular area possible in a given histogramFind a specific pair in matrixMaximum size square sub-matrix with all 1sFind the largest rectangle of 1’s with swapping of columns allowedMaximum sum rectangular submatrix in a given matrixMinimum Initial Points to Reach DestinationCount number of paths with at-most k turnsA Boolean Matrix QuestionMatrix Chain MultiplicationMaximum size rectangle binary sub-matrix with all 1sConstruct Ancestor Matrix from a Given Binary TreePrint K’th element in spiral form of matrixFind size of the largest ‘+’ formed by all ones in a binary matrixPrint maximum sum square sub-matrix of given sizeValidity of a given Tic-Tac-Toe board configuration Last Updated : 10 Jul, 2023 Like Article Save Article Previous Sum of matrix element where each elements is integer division of row and column Next How to Manage DSA and Development Together? Share your thoughts in the comments Add Your Comment Please Login to comment...