Two Dimensional Array
Everything on SkillVeris tagged Two Dimensional Array — collected across the glossary, study notes, blog, and cheat sheets.
5 resources across 1 library
Interview Questions(5)
How Do You Rotate a Matrix 90 Degrees In Place?
To rotate an n x n matrix 90 degrees clockwise in place, first transpose the matrix by swapping element (i, j) with (j, i), then reverse each row, achieving O(…
How Do You Traverse a Matrix in Spiral Order?
Spiral matrix traversal visits every element by tracking four shrinking boundaries — top, bottom, left, right — and walking right across the top row, down the…
What is the Minimum Path Sum Problem?
The minimum path sum problem asks for the smallest total cost of a path from the top-left to the bottom-right of a grid, moving only right or down, and it is s…
What is the Unique Paths Problem?
The unique paths problem counts how many distinct routes exist from the top-left to the bottom-right of an m x n grid when only right or down moves are allowed…
What is the Maximal Square Problem?
The maximal square problem finds the largest square of all 1s inside a binary matrix, solved in O(rows * cols) time by letting dp[i][j] represent the side leng…