You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise). You have to rotate the image in-place, which means you have to modify the input 2D matrix directly. DO NOT allocate another 2D matrix and do the rotation.
Write an efficient algorithm that searches for a target value in an m x n integer matrix.
Given a matrix, A of size M x N of 0’s and 1’s. If an element is 0, set its entire row and column to 0.
The robot is trying to move in a obstacle grid.
Find Unique Paths in a 2D Grid from Source to Destination
Medium Given an m x n board and a word, find if the word exists in the grid. The word can be constructed from letters of sequentially adjacent cells, where “adjacent” cells are horizontally […]