Graph

DFS

Avoid backtracker repetition

1059. All Paths from Source Lead to Destination

BFS

With steps

490. The Maze
1245. Tree Diameter

Dijkstra's algorithm

Map

Union Find
Graph

Topological sort

Union find

947. Most Stones Removed with Same Row or Column

Prim algorithm

Floyd-Warshall Algorithm

File confidence date difficulty
127. Word Ladder 🔴 March 19, 2024 hard
1584. Min Cost to Connect All Points 🟡 March 27, 2024 medium
332. Reconstruct Itinerary 🔴 March 30, 2024 hard
317. Shortest Distance from All Buildings 🔴 March 30, 2024 hard
489. Robot Room Cleaner 🔴 April 24, 2024 hard
2812. Find the Safest Path in a Grid 🔴 May 14, 2024 hard
133. Clone Graph 🟡 June 05, 2024 -
505. The Maze II 🔴 September 11, 2024 medium
490. The Maze 🔴 September 11, 2024 medium
277. Find the Celebrity 🔴 September 11, 2024 medium
1059. All Paths from Source Lead to Destination 🔴 September 11, 2024 medium
1245. Tree Diameter 🟡 September 21, 2024 medium
947. Most Stones Removed with Same Row or Column 🔴🟡🟢 October 13, 2024 medium
212. Word Search II 🟡 October 18, 2024 hard
2976. Minimum Cost to Convert String I 🔴 November 10, 2024 medium
1334. Find the City With the Smallest Number of Neighbors at a Threshold Distance 🔴 November 10, 2024 medium
959. Regions Cut By Slashes 🔴 December 06, 2024 medium
2127. Maximum Employees to Be Invited to a Meeting 🔴 January 26, 2025 hard
File confidence date difficulty note
733. Flood Fill 🟢 - - -
542. 01 Matrix 🟢 February 20, 2024 - Can turn all non zero entries into -1 first
994. Rotting Oranges 🟢 March 02, 2024 medium -
207. Course Schedule 🟢 March 02, 2024 - -
200. Number of Islands 🟢 March 02, 2024 - -
79. Word Search 🟢 March 08, 2024 - -
399. Evaluate Division 🟢 March 08, 2024 - -
210. Course Schedule II 🟢 March 08, 2024 - -
2050. Parallel Courses III 🟢 March 09, 2024 - -
684. Redundant Connection 🟢 March 19, 2024 - -
417. Pacific Atlantic Water Flow 🟢 March 19, 2024 - -
778. Swim in Rising Water 🟢 April 03, 2024 hard -
329. Longest Increasing Path in a Matrix 🟢 October 18, 2024 medium memorise the max for each node i dp
323. Number of Connected Components in an Undirected Graph 🟢 October 18, 2024 medium -
743. Network Delay Time 🟢 November 10, 2024 medium -
261. Graph Valid Tree 🟢 November 10, 2024 - -
1293. Shortest Path in a Grid with Obstacles Elimination 🟢 November 10, 2024 hard -

277. Find the Celebrity