3849 Equal Sum Grid Partition I
Equal Sum Grid Partition I You are given an m x n matrix grid of positive integers. Your task is to determine if it is possible to make either one horizontal or one vertical cut on the grid such ...
Equal Sum Grid Partition I You are given an m x n matrix grid of positive integers. Your task is to determine if it is possible to make either one horizontal or one vertical cut on the grid such ...
Maximum Non Negative Product in a Matrix You are given a m x n matrix grid. Initially, you are located at the top-left corner (0, 0), and in each step, you can only move right or down in the matr...
Determine Whether Matrix Can Be Obtained By Rotation Given two n x n binary matrices mat and target, return true* if it is possible to make mat equal to target by rotating mat in 90-degree increm...
Flip Square Submatrix Vertically You are given an m x n integer matrix grid, and three integers x, y, and k. The integers x and y represent the row and column indices of the top-left corner of a...
Construct Product Matrix Given a 0-indexed 2D integer matrix grid of size n * m, we define a 0-indexed 2D matrix p of size n * m as the product matrix of grid if the following condition is met: ...
Count Submatrices With Equal Frequency of X and Y Given a 2D character matrix grid, where grid[i][j] is either ‘X’, ‘Y’, or ‘.’, return the number of submatrices that contain: grid[0][0] an **eq...
Largest Submatrix With Rearrangements You are given a binary matrix matrix of size m x n, and you are allowed to rearrange the columns of the matrix in any order. Return the area of the largest ...
Get Biggest Three Rhombus Sums in a Grid You are given an m x n integer matrix grid. A rhombus sum is the sum of the elements that form the border of a regular rhombus shape in grid. The r...
The k-th Lexicographical String of All Happy Strings of Length n A happy string is a string that: consists only of letters of the set ['a', 'b', 'c']. s[i] != s[i + 1] for all values of i from 1...
Minimum Number of Seconds to Make Mountain Height Zero You are given an integer mountainHeight denoting the height of a mountain. You are also given an integer array workerTimes representing the...