Word Ladder (LeetCode 127)
The problem You get a word, an word and a list of allowed words . A…
Tag
26 posts
The problem You get a word, an word and a list of allowed words . A…
The problem You get a grid where is a wall, is a gate, and (2147483647) is an…
The problem You get an grid where is the elevation of that cell; the values…
The problem You get a grid of and . A region of cells (connected up, down…
The problem You get an undirected, connected graph with nodes as an adjacency…
The problem You get a list of airline tickets . Build the itinerary that starts…
The problem You start with a tree on nodes to , then one extra edge is added…
The problem You get a grid of . You start at the top-left cell and want to reach…
The problem You get an undirected graph with nodes. Edge joins and succeeds…
The problem You get a grid of heights. The Pacific touches the top and left…
The problem You get nodes labelled to and a list of undirected . Return how…
The problem You get a 2-D grid of (land) and (water). An island is a group of…
The problem There are nodes labelled to . Each entry in is a directed edge…
The problem You get points on a 2-D plane. Connecting two points costs their…
The problem You get nodes labelled to and a list of undirected . Return if…
The problem There are cities numbered to , joined by weighted, undirected…
The problem There are servers, numbered to , joined by undirected connections…
The problem There are courses labelled to . Each pair in means “you must…
The problem There are courses labelled to . Each pair means “take before…
The problem There are cities and a list of , each (one-way). Find the cheapest…
The problem An alien language uses lowercase English letters in an unknown order…
The problem You get a list of accounts. Each account is a name followed by one…
Ten problems that drill the weighted-graph algorithms from Lesson 23. The…
Lessons 12–16 covered unweighted graphs, where BFS gives the shortest path…
Twelve problems that drill the graph toolkit from Lesson 16 — DFS, BFS…
Graphs look intimidating, but interview graph problems reduce to four tools on…