Given an m x n grid of characters board and a string word, return true if word exists in the grid. The wo…
My memo and playground
Given an m x n grid of characters board and a string word, return true if word exists in the grid. The wo…
According to Wikipedia’s article: “The Game of Life, also known simply as Life, is a cellular automaton devised by the Brit…
Given an m x n integer matrix matrix, if an element is 0, set its entire row and column to 0‘s. You must do it in …
You are given an n x n 2D matrix representing an image, rotate the image by 90 degrees (clockwise). You have to rotate t…
Given an m x n matrix, return all elements of the matrix in spiral order. Example 1: Input: matrix = [[1,2,3],[4,5,6],[7,8,9]…
Determine if a 9 x 9 Sudoku board is valid. Only the filled cells need to be validated according to the following rules: Note…