GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

No menu could be recovered. Follow the blue links in the page.

This view

  • Original page
  • New address

GeezerVison is showing leetcodejavascript.com — Matrix LeetCode Problems | JavaScript Solutions

Matrix | LeetCode Problems

223 Matrix solutions to LeetCode solutions.

View Source Code on GitHub
All 2765 Array 1587 String 683 Hash Table 587 Math 485 Dynamic Programming 458 Sorting 384 Greedy 348 Depth-First Search 293 Binary Search 241 Tree 227 Breadth-First Search 224 Matrix 223 Two Pointers 200 Bit Manipulation 197 Binary Tree 175 Prefix Sum 159 Stack 154 Heap Priority Queue 152 Simulation 150 Counting 134 Graph 133 Design 123 Sliding Window 112 Backtracking 104 Union Find 79 Enumeration 78 Linked List 78 Ordered Set 60 Monotonic Stack 55 Trie 51 Number Theory 47 Divide and Conquer 46 Recursion 45 Bitmask 41 Queue 41 Binary Search Tree 40 Segment Tree 38 Memoization 36 Geometry 36 Combinatorics 35 Topological Sort 33 Hash Function 30 Binary Indexed Tree 28 Game Theory 26 String Matching 23 Shortest Path 23 Interactive 23 Rolling Hash 22 Data Stream 20 Brainteaser 16 Monotonic Queue 14 Randomized 12 Merge Sort 12 Doubly-Linked List 11 Counting Sort 10 Iterator 9 Probability and Statistics 7 Quickselect 7 Suffix Array 6 Bucket Sort 6 Line Sweep 5 Minimum Spanning Tree 5 Reservoir Sampling 4 Strongly Connected Component 3 Eulerian Circuit 3 Radix Sort 3 Rejection Sampling 2 Biconnected Component 1

Matrix Problems View all solutions →

Valid Sudoku

#36 Medium

Sudoku Solver

#37 Hard

Rotate Image

#48 Medium

Spiral Matrix

#54 Medium

Spiral Matrix II

#59 Medium

Unique Paths II

#63 Medium

Minimum Path Sum

#64 Medium

Set Matrix Zeroes

#73 Medium

Search a 2D Matrix

#74 Medium

Word Search

#79 Medium

Maximal Rectangle

#85 Hard

Surrounded Regions

#130 Medium

Dungeon Game

#174 Hard

Number of Islands

#200 Medium

Word Search II

#212 Hard

Maximal Square

#221 Medium

Search a 2D Matrix II

#240 Medium

Walls and Gates

#286 Medium

Game of Life

#289 Medium

Best Meeting Point

#296 Hard

Smallest Rectangle Enclosing Black Pixels

#302 Hard

Range Sum Query 2D - Immutable

#304 Medium

Range Sum Query 2D - Mutable

#308 Medium

Sparse Matrix Multiplication

#311 Medium

Shortest Distance from All Buildings

#317 Hard

Longest Increasing Path in a Matrix

#329 Hard

Design Tic-Tac-Toe

#348 Medium

Bomb Enemy

#361 Medium

Max Sum of Rectangle No Larger Than K

#363 Hard

Kth Smallest Element in a Sorted Matrix

#378 Medium

Trapping Rain Water II

#407 Hard

Pacific Atlantic Water Flow

#417 Medium

Battleships in a Board

#419 Medium

Valid Word Square

#422 Easy

Construct Quad Tree

#427 Medium

Island Perimeter

#463 Medium

The Maze

#490 Medium

Diagonal Traverse

#498 Medium

The Maze III

#499 Hard

The Maze II

#505 Medium

Minesweeper

#529 Medium

Lonely Pixel I

#531 Medium

Lonely Pixel II

#533 Medium

01 Matrix

#542 Medium

Longest Line of Consecutive One in Matrix

#562 Medium

Reshape the Matrix

#566 Easy

Maximum Vacation Days

#568 Hard

Design Excel Sum Formula

#631 Hard

Image Smoother

#661 Easy

Cut Off Trees for Golf Event

#675 Hard

Max Area of Island

#695 Medium

Candy Crush

#723 Medium

Flood Fill

#733 Easy

Cherry Pickup

#741 Hard

Contain Virus

#749 Hard

Number Of Corner Rectangles

#750 Medium

Toeplitz Matrix

#766 Easy

Sliding Puzzle

#773 Hard

Swim in Rising Water

#778 Hard

Transform to Chessboard

#782 Hard

Valid Tic-Tac-Toe State

#794 Medium

Bricks Falling When Hit

#803 Hard

Max Increase to Keep City Skyline

#807 Medium

Making A Large Island

#827 Hard

Flipping an Image

#832 Easy

Image Overlap

#835 Medium

Magic Squares In Grid

#840 Medium

Score After Flipping Matrix

#861 Medium

Shortest Path to Get All Keys

#864 Hard

Transpose Matrix

#867 Easy

Projection Area of 3D Shapes

#883 Easy

Spiral Matrix III

#885 Medium

Surface Area of 3D Shapes

#892 Easy

Snakes and Ladders

#909 Medium

Minimum Falling Path Sum

#931 Medium

Shortest Bridge

#934 Medium

Regions Cut By Slashes

#959 Medium

Unique Paths III

#980 Hard

Rotting Oranges

#994 Medium

Available Captures for Rook

#999 Easy

Number of Enclaves

#1020 Medium

Matrix Cells in Distance Order

#1030 Easy

Coloring A Border

#1034 Medium

Flip Columns For Maximum Number of Equal Rows

#1072 Medium

Number of Submatrices That Sum to Target

#1074 Hard

Shortest Path in Binary Matrix

#1091 Medium

Path With Maximum Minimum Value

#1102 Medium

Largest 1-Bordered Square

#1139 Medium

As Far from Land as Possible

#1162 Medium

Find Smallest Common Element in All Rows

#1198 Medium

Minimum Moves to Reach Target with Rotations

#1210 Hard

Path with Maximum Gold

#1219 Medium

Queens That Can Attack the King

#1222 Medium

Reconstruct a 2-Row Binary Matrix

#1253 Medium

Number of Closed Islands

#1254 Medium

Shift 2D Grid

#1260 Easy

Minimum Moves to Move a Box to Their Target Location

#1263 Hard

Count Servers that Communicate

#1267 Medium

Find Winner on a Tic Tac Toe Game

#1275 Easy

Count Square Submatrices with All Ones

#1277 Medium

Minimum Number of Flips to Convert Binary Matrix to Zero Matrix

#1284 Hard

Minimum Falling Path Sum II

#1289 Hard

Maximum Side Length of a Square with Sum Less than or Equal to Threshold

#1292 Medium

Shortest Path in a Grid with Obstacles Elimination

#1293 Hard

Number of Paths with Max Score

#1301 Hard

Matrix Block Sum

#1314 Medium

Sort the Matrix Diagonally

#1329 Medium

The K Weakest Rows in a Matrix

#1337 Easy

Maximum Students Taking Exam

#1349 Hard

Count Negative Numbers in a Sorted Matrix

#1351 Easy

Minimum Cost to Make at Least One Valid Path in a Grid

#1368 Hard

Lucky Numbers in a Matrix

#1380 Easy

Check if There is a Valid Path in a Grid

#1391 Medium

Leftmost Column with at Least a One

#1428 Medium

Find the Kth Smallest Sum of a Matrix With Sorted Rows

#1439 Hard

Number of Ways of Cutting a Pizza

#1444 Hard

Cherry Pickup II

#1463 Hard

Subrectangle Queries

#1476 Medium

Count Submatrices With All Ones

#1504 Medium

Minimum Swaps to Arrange a Binary Grid

#1536 Medium

Detect Cycles in 2D Grid

#1559 Medium

Minimum Number of Days to Disconnect Island

#1568 Hard

Matrix Diagonal Sum

#1572 Easy

Special Positions in a Binary Matrix

#1582 Easy

Strange Printer II

#1591 Hard

Maximum Non Negative Product in a Matrix

#1594 Medium

Minimum Cost to Connect Two Groups of Points

#1595 Hard

Find Valid Matrix Given Row and Column Sums

#1605 Medium

Path With Minimum Effort

#1631 Medium

Rank Transform of a Matrix

#1632 Hard

Richest Customer Wealth

#1672 Easy

Where Will the Ball Fall

#1706 Medium

Largest Submatrix With Rearrangements

#1727 Medium

Cat and Mouse II

#1728 Hard

Shortest Path to Get Food

#1730 Medium

Find Kth Largest XOR Coordinate Value

#1738 Medium

Map of Highest Peak

#1765 Medium

Shortest Path in a Hidden Grid

#1778 Medium

Minimum Path Cost in a Hidden Grid

#1810 Medium

Maximum Number of Accepted Invitations

#1820 Medium

Rotating the Box

#1861 Medium

Get Biggest Three Rhombus Sums in a Grid

#1878 Medium

Determine Whether Matrix Can Be Obtained By Rotation

#1886 Easy

Largest Magic Square

#1895 Medium

Find a Peak Element II

#1901 Medium

Count Sub Islands

#1905 Medium

Cyclically Rotating a Grid

#1914 Medium

Nearest Exit from Entrance in Maze

#1926 Medium

Maximum Number of Points with Cost

#1937 Medium

Check if Move is Legal

#1958 Medium

Last Day Where You Can Still Cross

#1970 Hard

Maximum Matrix Sum

#1975 Medium

Minimize the Difference Between Target and Chosen Elements

#1981 Medium

Find All Groups of Farmland

#1992 Medium

Grid Game

#2017 Medium

Check if Word Can Be Placed In Crossword

#2018 Medium

Convert 1D Array Into 2D Array

#2022 Easy

Minimum Operations to Make a Uni-Value Grid

#2033 Medium

Number of Spaces Cleaning Robot Cleaned

#2061 Medium

Count Fertile Pyramids in a Land

#2088 Hard

Minimum Operations to Remove Adjacent Ones in Matrix

#2123 Hard

Number of Laser Beams in a Bank

#2125 Medium

Remove All Ones With Row and Column Flips

#2128 Medium

Stamping the Grid

#2132 Hard

Check if Every Row and Column Contains All Numbers

#2133 Easy

K Highest Ranked Items Within a Price Range

#2146 Medium

Remove All Ones With Row and Column Flips II

#2174 Medium

Maximum Trailing Zeros in a Cornered Path

#2245 Medium

Count Unguarded Cells in the Grid

#2257 Medium

Escape the Spreading Fire

#2258 Hard

Check if There Is a Valid Parentheses String Path

#2267 Hard

Number of People That Can Be Seen in a Grid

#2282 Medium

Minimum Obstacle Removal to Reach Corner

#2290 Hard

Minimum Path Cost in a Grid

#2304 Medium

Check if Matrix Is X-Matrix

#2319 Easy

Spiral Matrix IV

#2326 Medium

Number of Increasing Paths in a Grid

#2328 Hard

Equal Row and Column Pairs

#2352 Medium

Minimize Maximum Value in a Grid

#2371 Hard

Largest Local Values in a Matrix

#2373 Easy

Median of a Row Wise Sorted Matrix

#2387 Medium

Build a Matrix With Conditions

#2392 Hard

Maximum Rows Covered by Columns

#2397 Medium

Maximum Sum of an Hourglass

#2428 Medium

Paths in Matrix Whose Sum Is Divisible by K

#2435 Hard

Difference Between Ones and Zeros in Row and Column

#2482 Medium

Delete Greatest Value in Each Row

#2500 Easy

Maximum Number of Points From Grid Queries

#2503 Hard

Check if There is a Path With Equal Number of 0's And 1's

#2510 Medium

Increment Submatrices by One

#2536 Medium

Sort the Students by Their Kth Score

#2545 Medium

Check Knight Tour Configuration

#2596 Medium

Find the Width of Columns of a Grid

#2639 Easy

Row With Maximum Ones

#2643 Easy

Maximum Number of Fish in a Grid

#2658 Medium

First Completely Painted Row or Column

#2661 Medium

The Knight’s Tour

#2664 Medium

Maximum Number of Moves in a Grid

#2684 Medium

Difference of Number of Distinct Values on Diagonals

#2711 Medium

Find a Good Subset of the Matrix

#2732 Hard

Minimum Time Takes to Reach Destination Without Drowning

#2814 Hard

Minimum Moves to Spread Stones Over Grid

#2850 Medium

Sum of Remoteness of All Cells

#2852 Medium

Find Champion I

#2923 Easy

Matrix Similarity After Cyclic Shifts

#2946 Easy

Find Missing and Repeated Values

#2965 Easy

Find the Grid of Region Average

#3030 Medium

Modify the Matrix

#3033 Easy

Most Frequent Prime

#3044 Medium

Count Submatrices with Top-Left Element and Sum Less Than k

#3070 Medium

Minimum Operations to Write the Letter Y on a Grid

#3071 Medium

Match Alphanumerical Pattern in Matrix I

#3078 Medium

Find the Minimum Area to Cover All Ones I

#3195 Medium

Find the Minimum Area to Cover All Ones II

#3197 Hard

Find Minimum Time to Reach Last Room I

#3341 Medium

Find Minimum Time to Reach Last Room II

#3342 Medium

Find Sorted Submatrices With Maximum Element at Most K

#3359 Hard

Find the Maximum Number of Fruits Collected

#3363 Hard

Design a 3D Binary Matrix with Efficient Layer Tracking

#3391 Medium

Minimum Operations to Make Columns Strictly Increasing

#3402 Easy

Sort Matrix by Diagonals

#3446 Medium

Maximum Sum With at Most K Elements

#3462 Medium

Design Spreadsheet

#3484 Medium
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.