← back
Matrix
227 questions · 0 seen
All Matrix problems
Matrix
1
Actions
⊣ Practice
Matrix
⊣ Quiz
Matrix
Problems
⊣ 36 Valid Sudoku
Medium
⊣ 37 Sudoku Solver
Hard
⊣ 48 Rotate Image
Medium
⊣ 54 Spiral Matrix
Medium
⊣ 59 Spiral Matrix II
Medium
⊣ 63 Unique Paths II
Medium
⊣ 64 Minimum Path Sum
Medium
⊣ 73 Set Matrix Zeroes
Medium
⊣ 74 Search a 2D Matrix
Medium
⊣ 79 Word Search
Medium
⊣ 85 Maximal Rectangle
Hard
⊣ 130 Surrounded Regions
Medium
⊣ 174 Dungeon Game
Hard
⊣ 200 Number of Islands
Medium
⊣ 212 Word Search II
Hard
⊣ 221 Maximal Square
Medium
⊣ 240 Search a 2D Matrix II
Medium
⊣ 289 Game of Life
Medium
⊣ 304 Range Sum Query 2D - Immutable
Medium
⊣ 329 Longest Increasing Path in a Matrix
Hard
⊣ 363 Max Sum of Rectangle No Larger Than K
Hard
⊣ 378 Kth Smallest Element in a Sorted Matrix
Medium
⊣ 407 Trapping Rain Water II
Hard
⊣ 417 Pacific Atlantic Water Flow
Medium
⊣ 419 Battleships in a Board
Medium
⊣ 427 Construct Quad Tree
Medium
⊣ 463 Island Perimeter
Easy
⊣ 498 Diagonal Traverse
Medium
⊣ 529 Minesweeper
Medium
⊣ 542 01 Matrix
Medium
⊣ 566 Reshape the Matrix
Easy
⊣ 661 Image Smoother
Easy
⊣ 675 Cut Off Trees for Golf Event
Hard
⊣ 695 Max Area of Island
Medium
⊣ 733 Flood Fill
Easy
⊣ 741 Cherry Pickup
Hard
⊣ 749 Contain Virus
Hard
⊣ 766 Toeplitz Matrix
Easy
⊣ 773 Sliding Puzzle
Hard
⊣ 778 Swim in Rising Water
Hard
⊣ 782 Transform to Chessboard
Hard
⊣ 794 Valid Tic-Tac-Toe State
Medium
⊣ 803 Bricks Falling When Hit
Hard
⊣ 807 Max Increase to Keep City Skyline
Medium
⊣ 827 Making A Large Island
Hard
⊣ 832 Flipping an Image
Easy
⊣ 835 Image Overlap
Medium
⊣ 840 Magic Squares In Grid
Medium
⊣ 861 Score After Flipping Matrix
Medium
⊣ 864 Shortest Path to Get All Keys
Hard
⊣ 867 Transpose Matrix
Easy
⊣ 883 Projection Area of 3D Shapes
Easy
⊣ 885 Spiral Matrix III
Medium
⊣ 892 Surface Area of 3D Shapes
Easy
⊣ 909 Snakes and Ladders
Medium
⊣ 931 Minimum Falling Path Sum
Medium
⊣ 934 Shortest Bridge
Medium
⊣ 959 Regions Cut By Slashes
Medium
⊣ 980 Unique Paths III
Hard
⊣ 994 Rotting Oranges
Medium
⊣ 999 Available Captures for Rook
Easy
⊣ 1020 Number of Enclaves
Medium
⊣ 1030 Matrix Cells in Distance Order
Easy
⊣ 1034 Coloring A Border
Medium
⊣ 1072 Flip Columns For Maximum Number of Equal Rows
Medium
⊣ 1074 Number of Submatrices That Sum to Target
Hard
⊣ 1091 Shortest Path in Binary Matrix
Medium
⊣ 1139 Largest 1-Bordered Square
Medium
⊣ 1162 As Far from Land as Possible
Medium
⊣ 1210 Minimum Moves to Reach Target with Rotations
Hard
⊣ 1219 Path with Maximum Gold
Medium
⊣ 1222 Queens That Can Attack the King
Medium
⊣ 1253 Reconstruct a 2-Row Binary Matrix
Medium
⊣ 1254 Number of Closed Islands
Medium
⊣ 1260 Shift 2D Grid
Easy
⊣ 1263 Minimum Moves to Move a Box to Their Target Location
Hard
⊣ 1267 Count Servers that Communicate
Medium
⊣ 1275 Find Winner on a Tic Tac Toe Game
Easy
⊣ 1277 Count Square Submatrices with All Ones
Medium
⊣ 1284 Minimum Number of Flips to Convert Binary Matrix to Zero Matrix
Hard
⊣ 1289 Minimum Falling Path Sum II
Hard
⊣ 1292 Maximum Side Length of a Square with Sum Less than or Equal to Threshold
Medium
⊣ 1293 Shortest Path in a Grid with Obstacles Elimination
Hard
⊣ 1301 Number of Paths with Max Score
Hard
⊣ 1314 Matrix Block Sum
Medium
⊣ 1329 Sort the Matrix Diagonally
Medium
⊣ 1337 The K Weakest Rows in a Matrix
Easy
⊣ 1349 Maximum Students Taking Exam
Hard
⊣ 1351 Count Negative Numbers in a Sorted Matrix
Easy
⊣ 1368 Minimum Cost to Make at Least One Valid Path in a Grid
Hard
⊣ 1380 Lucky Numbers in a Matrix
Easy
⊣ 1391 Check if There is a Valid Path in a Grid
Medium
⊣ 1439 Find the Kth Smallest Sum of a Matrix With Sorted Rows
Hard
⊣ 1444 Number of Ways of Cutting a Pizza
Hard
⊣ 1463 Cherry Pickup II
Hard
⊣ 1476 Subrectangle Queries
Medium
⊣ 1504 Count Submatrices With All Ones
Medium
⊣ 1536 Minimum Swaps to Arrange a Binary Grid
Medium
⊣ 1559 Detect Cycles in 2D Grid
Medium
⊣ 1568 Minimum Number of Days to Disconnect Island
Hard
⊣ 1572 Matrix Diagonal Sum
Easy
⊣ 1582 Special Positions in a Binary Matrix
Easy
⊣ 1591 Strange Printer II
Hard
⊣ 1594 Maximum Non Negative Product in a Matrix
Medium
⊣ 1595 Minimum Cost to Connect Two Groups of Points
Hard
⊣ 1605 Find Valid Matrix Given Row and Column Sums
Medium
⊣ 1631 Path With Minimum Effort
Medium
⊣ 1632 Rank Transform of a Matrix
Hard
⊣ 1672 Richest Customer Wealth
Easy
⊣ 1706 Where Will the Ball Fall
Medium
⊣ 1727 Largest Submatrix With Rearrangements
Medium
⊣ 1728 Cat and Mouse II
Hard
⊣ 1738 Find Kth Largest XOR Coordinate Value (PRO)
Medium
⊣ 1765 Map of Highest Peak
Medium
⊣ 1861 Rotating the Box
Medium
⊣ 1878 Get Biggest Three Rhombus Sums in a Grid
Medium
⊣ 1886 Determine Whether Matrix Can Be Obtained By Rotation (PRO)
Easy
⊣ 1895 Largest Magic Square (PRO)
Medium
⊣ 1901 Find a Peak Element II
Medium
⊣ 1905 Count Sub Islands
Medium
⊣ 1914 Cyclically Rotating a Grid (PRO)
Medium
⊣ 1926 Nearest Exit from Entrance in Maze
Medium
⊣ 1937 Maximum Number of Points with Cost
Medium
⊣ 1958 Check if Move is Legal (PRO)
Medium
⊣ 1970 Last Day Where You Can Still Cross (PRO)
Hard
⊣ 1975 Maximum Matrix Sum
Medium
⊣ 1981 Minimize the Difference Between Target and Chosen Elements
Medium
⊣ 1992 Find All Groups of Farmland (PRO)
Medium
⊣ 2017 Grid Game
Medium
⊣ 2018 Check if Word Can Be Placed In Crossword
Medium
⊣ 2022 Convert 1D Array Into 2D Array
Easy
⊣ 2033 Minimum Operations to Make a Uni-Value Grid
Medium
⊣ 2088 Count Fertile Pyramids in a Land
Hard
⊣ 2125 Number of Laser Beams in a Bank
Medium
⊣ 2132 Stamping the Grid
Hard
⊣ 2133 Check if Every Row and Column Contains All Numbers
Easy
⊣ 2146 K Highest Ranked Items Within a Price Range
Medium
⊣ 2245 Maximum Trailing Zeros in a Cornered Path
Medium
⊣ 2257 Count Unguarded Cells in the Grid
Medium
⊣ 2258 Escape the Spreading Fire
Hard
⊣ 2267 Check if There Is a Valid Parentheses String Path
Hard
⊣ 2290 Minimum Obstacle Removal to Reach Corner
Hard
⊣ 2304 Minimum Path Cost in a Grid
Medium
⊣ 2319 Check if Matrix Is X-Matrix
Easy
⊣ 2326 Spiral Matrix IV
Medium
⊣ 2328 Number of Increasing Paths in a Grid
Hard
⊣ 2352 Equal Row and Column Pairs
Medium
⊣ 2373 Largest Local Values in a Matrix
Easy
⊣ 2392 Build a Matrix With Conditions
Hard
⊣ 2397 Maximum Rows Covered by Columns
Medium
⊣ 2428 Maximum Sum of an Hourglass
Medium
⊣ 2435 Paths in Matrix Whose Sum Is Divisible by K
Hard
⊣ 2482 Difference Between Ones and Zeros in Row and Column
Medium
⊣ 2500 Delete Greatest Value in Each Row
Easy
⊣ 2503 Maximum Number of Points From Grid Queries
Hard
⊣ 2536 Increment Submatrices by One
Medium
⊣ 2545 Sort the Students by Their Kth Score
Medium
⊣ 2556 Disconnect Path in a Binary Matrix by at Most One Flip
Medium
⊣ 2573 Find the String with LCP
Hard
⊣ 2577 Minimum Time to Visit a Cell In a Grid
Hard
⊣ 2596 Check Knight Tour Configuration
Medium
⊣ 2614 Prime In Diagonal
Easy
⊣ 2617 Minimum Number of Visited Cells in a Grid
Hard
⊣ 2639 Find the Width of Columns of a Grid
Easy
⊣ 2643 Row With Maximum Ones
Easy
⊣ 2658 Maximum Number of Fish in a Grid
Medium
⊣ 2661 First Completely Painted Row or Column
Medium
⊣ 2679 Sum in a Matrix
Medium
⊣ 2684 Maximum Number of Moves in a Grid
Medium
⊣ 2711 Difference of Number of Distinct Values on Diagonals
Medium
⊣ 2713 Maximum Strictly Increasing Cells in a Matrix
Hard
⊣ 2732 Find a Good Subset of the Matrix
Hard
⊣ 2812 Find the Safest Path in a Grid
Medium
⊣ 2850 Minimum Moves to Spread Stones Over Grid
Medium
⊣ 2906 Construct Product Matrix
Medium
⊣ 2923 Find Champion I
Easy
⊣ 2931 Maximum Spending After Buying Items
Hard
⊣ 2946 Matrix Similarity After Cyclic Shifts
Easy
⊣ 2965 Find Missing and Repeated Values
Easy
⊣ 3030 Find the Grid of Region Average
Medium
⊣ 3033 Modify the Matrix
Easy
⊣ 3044 Most Frequent Prime
Medium
⊣ 3070 Count Submatrices with Top-Left Element and Sum Less Than k
Medium
⊣ 3071 Minimum Operations to Write the Letter Y on a Grid
Medium
⊣ 3122 Minimum Number of Operations to Satisfy Conditions
Medium
⊣ 3127 Make a Square with the Same Color
Easy
⊣ 3142 Check if Grid Satisfies Conditions
Easy
⊣ 3148 Maximum Difference Score in a Grid
Medium
⊣ 3195 Find the Minimum Area to Cover All Ones I
Medium
⊣ 3197 Find the Minimum Area to Cover All Ones II
Hard
⊣ 3212 Count Submatrices With Equal Frequency of X and Y
Medium
⊣ 3225 Maximum Score From Grid Operations
Hard
⊣ 3239 Minimum Number of Flips to Make Binary Grid Palindromic I
Medium
⊣ 3240 Minimum Number of Flips to Make Binary Grid Palindromic II
Medium
⊣ 3242 Design Neighbor Sum Service
Easy
⊣ 3256 Maximum Value Sum by Placing Three Rooks I
Hard
⊣ 3257 Maximum Value Sum by Placing Three Rooks II
Hard
⊣ 3276 Select Cells in Grid With Maximum Score
Hard
⊣ 3286 Find a Safe Walk Through a Grid
Medium
⊣ 3311 Construct 2D Grid Matching Graph Layout
Hard
⊣ 3332 Maximum Points Tourist Can Earn
Medium
⊣ 3341 Find Minimum Time to Reach Last Room I
Medium
⊣ 3342 Find Minimum Time to Reach Last Room II
Medium
⊣ 3363 Find the Maximum Number of Fruits Collected
Hard
⊣ 3393 Count Paths With the Given XOR Value
Medium
⊣ 3402 Minimum Operations to Make Columns Strictly Increasing
Easy
⊣ 3417 Zigzag Grid Traversal With Skip
Easy
⊣ 3418 Maximum Amount of Money Robot Can Earn
Medium
⊣ 3446 Sort Matrix by Diagonals
Medium
⊣ 3459 Length of Longest V-Shaped Diagonal Segment
Hard
⊣ 3462 Maximum Sum With at Most K Elements
Medium
⊣ 3484 Design Spreadsheet
Medium
⊣ 3529 Count Cells in Overlapping Horizontal and Vertical Substrings
Medium
⊣ 3537 Fill a Special Grid
Medium
⊣ 3546 Equal Sum Grid Partition I
Medium
⊣ 3548 Equal Sum Grid Partition II
Hard
⊣ 3552 Grid Teleportation Traversal
Medium
⊣ 3567 Minimum Absolute Difference in Sliding Submatrix
Medium
⊣ 3568 Minimum Moves to Clean the Classroom
Medium
⊣ 3603 Minimum Cost Path with Alternating Directions II
Medium
⊣ 3619 Count Islands With Total Value Divisible by K
Medium
⊣ 3643 Flip Square Submatrix Vertically
Easy
⊣ 3651 Minimum Cost Path with Teleportations
Hard
⊣ 3665 Twisted Mirror Path Count
Medium
⊣ 3725 Count Ways to Choose Coprime Integers from Rows
Hard
⊣ 3742 Maximum Path Score in a Grid
Medium
⊣ 3797 Count Routes to Climb a Rectangular Grid
Hard