Search a word in a 2D matrix of characters
Problem Statement: You are given a 2D board(N rows and M columns) of characters and a string “word”. Your task is to check if the… Read More »Search a word in a 2D matrix of characters
Problem Statement: You are given a 2D board(N rows and M columns) of characters and a string “word”. Your task is to check if the… Read More »Search a word in a 2D matrix of characters
In a given grid, each cell can have one of three values: the value 0 representing an empty cell; the value 1 representing a fresh orange; the value 2 representing a rotten… Read More »Leetcode 994. Rotting Oranges
Problem Link Given a rectangular cake with height h and width w, and two arrays of integers horizontalCuts and verticalCuts where horizontalCuts[i] is the distance from the top of the rectangular cake to the ith horizontal… Read More »Leetcode 1465. Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts
Problem Link In a N x N grid composed of 1 x 1 squares, each 1 x 1 square consists of a /, \, or blank space. These characters… Read More »Leetcode 959. Regions Cut By Slashes