Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ LeetCode Problems' Solutions

| # | Title | Solution | Difficulty |
| :-: | - | - | :-: |
| <span id="1195">1195</span> | [Fizz Buzz Multithreaded](https://leetcode.com/problems/fizz-buzz-multithreaded) | [Go](https://github.com/openset/leetcode/tree/master/problems/fizz-buzz-multithreaded) | Medium |
| <span id="1194">1194</span> | [Tournament Winners](https://leetcode.com/problems/tournament-winners) 🔒 | [MySQL](https://github.com/openset/leetcode/tree/master/problems/tournament-winners) | Hard |
| <span id="1193">1193</span> | [Monthly Transactions I](https://leetcode.com/problems/monthly-transactions-i) 🔒 | [MySQL](https://github.com/openset/leetcode/tree/master/problems/monthly-transactions-i) | Medium |
| <span id="1192">1192</span> | [Critical Connections in a Network](https://leetcode.com/problems/critical-connections-in-a-network "查找集群内的「关键连接」") | [Go](https://github.com/openset/leetcode/tree/master/problems/critical-connections-in-a-network) | Hard |
Expand Down Expand Up @@ -165,7 +166,7 @@ LeetCode Problems' Solutions
| <span id="1086">1086</span> | [High Five](https://leetcode.com/problems/high-five "前五科的均分") 🔒 | [Go](https://github.com/openset/leetcode/tree/master/problems/high-five) | Easy |
| <span id="1085">1085</span> | [Sum of Digits in the Minimum Number](https://leetcode.com/problems/sum-of-digits-in-the-minimum-number "最小元素各数位之和") 🔒 | [Go](https://github.com/openset/leetcode/tree/master/problems/sum-of-digits-in-the-minimum-number) | Easy |
| <span id="1084">1084</span> | [Sales Analysis III](https://leetcode.com/problems/sales-analysis-iii) 🔒 | [MySQL](https://github.com/openset/leetcode/tree/master/problems/sales-analysis-iii) | Easy |
| <span id="1083">1083</span> | [Sales Analysis II](https://leetcode.com/problems/sales-analysis-ii) 🔒 | [MySQL](https://github.com/openset/leetcode/tree/master/problems/sales-analysis-ii) | Easy |
| <span id="1083">1083</span> | [Sales Analysis II](https://leetcode.com/problems/sales-analysis-ii "1083. 销售分析II") 🔒 | [MySQL](https://github.com/openset/leetcode/tree/master/problems/sales-analysis-ii) | Easy |
| <span id="1082">1082</span> | [Sales Analysis I](https://leetcode.com/problems/sales-analysis-i "销售分析 I ") 🔒 | [MySQL](https://github.com/openset/leetcode/tree/master/problems/sales-analysis-i) | Easy |
| <span id="1081">1081</span> | [Smallest Subsequence of Distinct Characters](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters "不同字符的最小子序列") | [Go](https://github.com/openset/leetcode/tree/master/problems/smallest-subsequence-of-distinct-characters) | Medium |
| <span id="1080">1080</span> | [Insufficient Nodes in Root to Leaf Paths](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths "根到叶路径上的不足节点") | [Go](https://github.com/openset/leetcode/tree/master/problems/insufficient-nodes-in-root-to-leaf-paths) | Medium |
Expand Down
12 changes: 11 additions & 1 deletion internal/leetcode/question_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,13 @@ func (question *questionType) getDescContent() []byte {
var buf bytes.Buffer
buf.WriteString(authInfo("description"))
buf.WriteString(question.getNavigation())
buf.WriteString(fmt.Sprintf("\n## %s. %s%s\n\n", question.QuestionFrontendId, question.Title, question.Difficulty.Str()))
buf.WriteString(fmt.Sprintf("\n## [%s. %s%s](%s \"%s\")\n\n",
question.QuestionFrontendId,
question.Title,
question.Difficulty.Str(),
question.LeetCodeUrl(),
question.TranslatedTitle,
))
cts := filterContents(question.Content)
// remove style
reg := regexp.MustCompile(`<style[\S\s]+?</style>`)
Expand Down Expand Up @@ -197,6 +203,10 @@ func (question *questionType) TitleSnake() string {
return slugToSnake(question.TitleSlug)
}

func (question *questionType) LeetCodeUrl() string {
return "https://leetcode.com/problems/" + question.TitleSlug
}

func (question *questionType) PackageName() string {
return "problem_" + question.QuestionFrontendId
}
Expand Down
2 changes: 1 addition & 1 deletion internal/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/openset/leetcode/internal/base"
)

const version = "1.4.7"
const version = "1.4.8"

var CmdVersion = &base.Command{
Run: runVersion,
Expand Down
2 changes: 1 addition & 1 deletion problems/01-matrix/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

[Next >](https://github.com/openset/leetcode/tree/master/problems/diameter-of-binary-tree "Diameter of Binary Tree")

## 542. 01 Matrix (Medium)
## [542. 01 Matrix (Medium)](https://leetcode.com/problems/01-matrix "01 矩阵")

<p>Given a matrix consists of 0 and 1, find the distance of the nearest 0 for each cell.</p>

Expand Down
2 changes: 1 addition & 1 deletion problems/1-bit-and-2-bit-characters/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

[Next >](https://github.com/openset/leetcode/tree/master/problems/maximum-length-of-repeated-subarray "Maximum Length of Repeated Subarray")

## 717. 1-bit and 2-bit Characters (Easy)
## [717. 1-bit and 2-bit Characters (Easy)](https://leetcode.com/problems/1-bit-and-2-bit-characters "1比特与2比特字符")

<p>We have two special characters. The first character can be represented by one bit <code>0</code>. The second character can be represented by two bits (<code>10</code> or <code>11</code>). </p>

Expand Down
2 changes: 1 addition & 1 deletion problems/132-pattern/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

[Next >](https://github.com/openset/leetcode/tree/master/problems/circular-array-loop "Circular Array Loop")

## 456. 132 Pattern (Medium)
## [456. 132 Pattern (Medium)](https://leetcode.com/problems/132-pattern "132模式")

<p>
Given a sequence of n integers a<sub>1</sub>, a<sub>2</sub>, ..., a<sub>n</sub>, a 132 pattern is a subsequence a<sub><b>i</b></sub>, a<sub><b>j</b></sub>, a<sub><b>k</b></sub> such
Expand Down
2 changes: 1 addition & 1 deletion problems/2-keys-keyboard/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

[Next >](https://github.com/openset/leetcode/tree/master/problems/4-keys-keyboard "4 Keys Keyboard")

## 650. 2 Keys Keyboard (Medium)
## [650. 2 Keys Keyboard (Medium)](https://leetcode.com/problems/2-keys-keyboard "只有两个键的键盘")

<p>Initially on a notepad only one character &#39;A&#39; is present. You can perform two operations on this notepad for each step:</p>

Expand Down
2 changes: 1 addition & 1 deletion problems/24-game/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

[Next >](https://github.com/openset/leetcode/tree/master/problems/valid-palindrome-ii "Valid Palindrome II")

## 679. 24 Game (Hard)
## [679. 24 Game (Hard)](https://leetcode.com/problems/24-game "24 点游戏")

<p>
You have 4 cards each containing a number from 1 to 9. You need to judge whether they could operated through <code>*</code>, <code>/</code>, <code>+</code>, <code>-</code>, <code>(</code>, <code>)</code> to get the value of 24.
Expand Down
2 changes: 1 addition & 1 deletion problems/3sum-closest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

[Next >](https://github.com/openset/leetcode/tree/master/problems/letter-combinations-of-a-phone-number "Letter Combinations of a Phone Number")

## 16. 3Sum Closest (Medium)
## [16. 3Sum Closest (Medium)](https://leetcode.com/problems/3sum-closest "最接近的三数之和")

<p>Given an array <code>nums</code> of <em>n</em> integers and an integer <code>target</code>, find three integers in <code>nums</code>&nbsp;such that the sum is closest to&nbsp;<code>target</code>. Return the sum of the three integers. You may assume that each input would have exactly one solution.</p>

Expand Down
2 changes: 1 addition & 1 deletion problems/3sum-smaller/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

[Next >](https://github.com/openset/leetcode/tree/master/problems/single-number-iii "Single Number III")

## 259. 3Sum Smaller (Medium)
## [259. 3Sum Smaller (Medium)](https://leetcode.com/problems/3sum-smaller "较小的三数之和")



Expand Down
2 changes: 1 addition & 1 deletion problems/3sum-with-multiplicity/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

[Next >](https://github.com/openset/leetcode/tree/master/problems/minimize-malware-spread "Minimize Malware Spread")

## 923. 3Sum With Multiplicity (Medium)
## [923. 3Sum With Multiplicity (Medium)](https://leetcode.com/problems/3sum-with-multiplicity "三数之和的多种可能")

<p>Given an integer array <code>A</code>, and an integer <code>target</code>, return the number of&nbsp;tuples&nbsp;<code>i, j, k</code>&nbsp; such that <code>i &lt; j &lt; k</code> and&nbsp;<code>A[i] + A[j] + A[k] == target</code>.</p>

Expand Down
2 changes: 1 addition & 1 deletion problems/3sum/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

[Next >](https://github.com/openset/leetcode/tree/master/problems/3sum-closest "3Sum Closest")

## 15. 3Sum (Medium)
## [15. 3Sum (Medium)](https://leetcode.com/problems/3sum "三数之和")

<p>Given an array <code>nums</code> of <em>n</em> integers, are there elements <em>a</em>, <em>b</em>, <em>c</em> in <code>nums</code> such that <em>a</em> + <em>b</em> + <em>c</em> = 0? Find all unique triplets in the array which gives the sum of zero.</p>

Expand Down
2 changes: 1 addition & 1 deletion problems/4-keys-keyboard/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

[Next >](https://github.com/openset/leetcode/tree/master/problems/find-duplicate-subtrees "Find Duplicate Subtrees")

## 651. 4 Keys Keyboard (Medium)
## [651. 4 Keys Keyboard (Medium)](https://leetcode.com/problems/4-keys-keyboard "4键键盘")

<p>Imagine you have a special keyboard with the following keys: </p>
<p><code>Key 1: (A)</code>: Print one 'A' on screen.</p>
Expand Down
2 changes: 1 addition & 1 deletion problems/4sum-ii/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

[Next >](https://github.com/openset/leetcode/tree/master/problems/assign-cookies "Assign Cookies")

## 454. 4Sum II (Medium)
## [454. 4Sum II (Medium)](https://leetcode.com/problems/4sum-ii "四数相加 II")

<p>Given four lists A, B, C, D of integer values, compute how many tuples <code>(i, j, k, l)</code> there are such that <code>A[i] + B[j] + C[k] + D[l]</code> is zero.</p>

Expand Down
2 changes: 1 addition & 1 deletion problems/4sum/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

[Next >](https://github.com/openset/leetcode/tree/master/problems/remove-nth-node-from-end-of-list "Remove Nth Node From End of List")

## 18. 4Sum (Medium)
## [18. 4Sum (Medium)](https://leetcode.com/problems/4sum "四数之和")

<p>Given an array <code>nums</code> of <em>n</em> integers and an integer <code>target</code>, are there elements <em>a</em>, <em>b</em>, <em>c</em>, and <em>d</em> in <code>nums</code> such that <em>a</em> + <em>b</em> + <em>c</em> + <em>d</em> = <code>target</code>? Find all unique quadruplets in the array which gives the sum of <code>target</code>.</p>

Expand Down
2 changes: 1 addition & 1 deletion problems/accounts-merge/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

[Next >](https://github.com/openset/leetcode/tree/master/problems/remove-comments "Remove Comments")

## 721. Accounts Merge (Medium)
## [721. Accounts Merge (Medium)](https://leetcode.com/problems/accounts-merge "账户合并")

<p>Given a list <code>accounts</code>, each element <code>accounts[i]</code> is a list of strings, where the first element <code>accounts[i][0]</code> is a <i>name</i>, and the rest of the elements are <i>emails</i> representing emails of the account.</p>

Expand Down
2 changes: 1 addition & 1 deletion problems/active-businesses/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@

[Next >](https://github.com/openset/leetcode/tree/master/problems/user-purchase-platform "User Purchase Platform")

## 1126. Active Businesses (Medium)
## [1126. Active Businesses (Medium)](https://leetcode.com/problems/active-businesses "")


Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@

[Next >](https://github.com/openset/leetcode/tree/master/problems/height-checker "Height Checker")

## 1050. Actors and Directors Who Cooperated At Least Three Times (Easy)
## [1050. Actors and Directors Who Cooperated At Least Three Times (Easy)](https://leetcode.com/problems/actors-and-directors-who-cooperated-at-least-three-times "合作过至少三次的演员和导演")


Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

[Next >](https://github.com/openset/leetcode/tree/master/problems/word-search-ii "Word Search II")

## 211. Add and Search Word - Data structure design (Medium)
## [211. Add and Search Word - Data structure design (Medium)](https://leetcode.com/problems/add-and-search-word-data-structure-design "添加与搜索单词 - 数据结构设计")

<p>Design a data structure that supports the following two operations:</p>

Expand Down
2 changes: 1 addition & 1 deletion problems/add-binary/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

[Next >](https://github.com/openset/leetcode/tree/master/problems/text-justification "Text Justification")

## 67. Add Binary (Easy)
## [67. Add Binary (Easy)](https://leetcode.com/problems/add-binary "二进制求和")

<p>Given two binary strings, return their sum (also a binary string).</p>

Expand Down
2 changes: 1 addition & 1 deletion problems/add-bold-tag-in-string/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

[Next >](https://github.com/openset/leetcode/tree/master/problems/merge-two-binary-trees "Merge Two Binary Trees")

## 616. Add Bold Tag in String (Medium)
## [616. Add Bold Tag in String (Medium)](https://leetcode.com/problems/add-bold-tag-in-string "给字符串添加加粗标签")



Expand Down
2 changes: 1 addition & 1 deletion problems/add-digits/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

[Next >](https://github.com/openset/leetcode/tree/master/problems/3sum-smaller "3Sum Smaller")

## 258. Add Digits (Easy)
## [258. Add Digits (Easy)](https://leetcode.com/problems/add-digits "各位相加")

<p>Given a non-negative integer <code>num</code>, repeatedly add all its digits until the result has only one digit.</p>

Expand Down
2 changes: 1 addition & 1 deletion problems/add-one-row-to-tree/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

[Next >](https://github.com/openset/leetcode/tree/master/problems/maximum-distance-in-arrays "Maximum Distance in Arrays")

## 623. Add One Row to Tree (Medium)
## [623. Add One Row to Tree (Medium)](https://leetcode.com/problems/add-one-row-to-tree "在二叉树中增加一行")

<p>Given the root of a binary tree, then value <code>v</code> and depth <code>d</code>, you need to add a row of nodes with value <code>v</code> at the given depth <code>d</code>. The root node is at depth 1. </p>

Expand Down
2 changes: 1 addition & 1 deletion problems/add-strings/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

[Next >](https://github.com/openset/leetcode/tree/master/problems/partition-equal-subset-sum "Partition Equal Subset Sum")

## 415. Add Strings (Easy)
## [415. Add Strings (Easy)](https://leetcode.com/problems/add-strings "字符串相加")

<p>Given two non-negative integers <code>num1</code> and <code>num2</code> represented as string, return the sum of <code>num1</code> and <code>num2</code>.</p>

Expand Down
2 changes: 1 addition & 1 deletion problems/add-to-array-form-of-integer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

[Next >](https://github.com/openset/leetcode/tree/master/problems/satisfiability-of-equality-equations "Satisfiability of Equality Equations")

## 989. Add to Array-Form of Integer (Easy)
## [989. Add to Array-Form of Integer (Easy)](https://leetcode.com/problems/add-to-array-form-of-integer "数组形式的整数加法")

<p>For a non-negative integer <code>X</code>, the&nbsp;<em>array-form of <code>X</code></em>&nbsp;is an array of its digits in left to right order.&nbsp; For example, if <code>X = 1231</code>, then the array form is&nbsp;<code>[1,2,3,1]</code>.</p>

Expand Down
2 changes: 1 addition & 1 deletion problems/add-two-numbers-ii/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

[Next >](https://github.com/openset/leetcode/tree/master/problems/arithmetic-slices-ii-subsequence "Arithmetic Slices II - Subsequence")

## 445. Add Two Numbers II (Medium)
## [445. Add Two Numbers II (Medium)](https://leetcode.com/problems/add-two-numbers-ii "两数相加 II")

<p>You are given two <b>non-empty</b> linked lists representing two non-negative integers. The most significant digit comes first and each of their nodes contain a single digit. Add the two numbers and return it as a linked list.</p>

Expand Down
2 changes: 1 addition & 1 deletion problems/add-two-numbers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

[Next >](https://github.com/openset/leetcode/tree/master/problems/longest-substring-without-repeating-characters "Longest Substring Without Repeating Characters")

## 2. Add Two Numbers (Medium)
## [2. Add Two Numbers (Medium)](https://leetcode.com/problems/add-two-numbers "两数相加")

<p>You are given two <b>non-empty</b> linked lists representing two non-negative integers. The digits are stored in <b>reverse order</b> and each of their nodes contain a single digit. Add the two numbers and return it as a linked list.</p>

Expand Down
2 changes: 1 addition & 1 deletion problems/adding-two-negabinary-numbers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

[Next >](https://github.com/openset/leetcode/tree/master/problems/number-of-submatrices-that-sum-to-target "Number of Submatrices That Sum to Target")

## 1073. Adding Two Negabinary Numbers (Medium)
## [1073. Adding Two Negabinary Numbers (Medium)](https://leetcode.com/problems/adding-two-negabinary-numbers "负二进制数相加")

<p>Given two numbers <code>arr1</code> and <code>arr2</code> in base <strong>-2</strong>, return the result of adding them together.</p>

Expand Down
2 changes: 1 addition & 1 deletion problems/additive-number/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

[Next >](https://github.com/openset/leetcode/tree/master/problems/range-sum-query-mutable "Range Sum Query - Mutable")

## 306. Additive Number (Medium)
## [306. Additive Number (Medium)](https://leetcode.com/problems/additive-number "累加数")

<p>Additive number is a string whose digits can form additive sequence.</p>

Expand Down
2 changes: 1 addition & 1 deletion problems/advantage-shuffle/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

[Next >](https://github.com/openset/leetcode/tree/master/problems/minimum-number-of-refueling-stops "Minimum Number of Refueling Stops")

## 870. Advantage Shuffle (Medium)
## [870. Advantage Shuffle (Medium)](https://leetcode.com/problems/advantage-shuffle "优势洗牌")

<p>Given two arrays <code>A</code> and <code>B</code> of equal size, the <em>advantage of <code>A</code> with respect to <code>B</code></em> is the number of indices <code>i</code>&nbsp;for which <code>A[i] &gt; B[i]</code>.</p>

Expand Down
2 changes: 1 addition & 1 deletion problems/alien-dictionary/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

[Next >](https://github.com/openset/leetcode/tree/master/problems/closest-binary-search-tree-value "Closest Binary Search Tree Value")

## 269. Alien Dictionary (Hard)
## [269. Alien Dictionary (Hard)](https://leetcode.com/problems/alien-dictionary "火星词典")



Expand Down
2 changes: 1 addition & 1 deletion problems/all-nodes-distance-k-in-binary-tree/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

[Next >](https://github.com/openset/leetcode/tree/master/problems/shortest-path-to-get-all-keys "Shortest Path to Get All Keys")

## 863. All Nodes Distance K in Binary Tree (Medium)
## [863. All Nodes Distance K in Binary Tree (Medium)](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree "二叉树中所有距离为 K 的结点")

<p>We are given a binary tree (with root node&nbsp;<code>root</code>), a <code>target</code> node, and an integer value <code>K</code>.</p>

Expand Down
2 changes: 1 addition & 1 deletion problems/all-oone-data-structure/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

[Next >](https://github.com/openset/leetcode/tree/master/problems/minimum-genetic-mutation "Minimum Genetic Mutation")

## 432. All O`one Data Structure (Hard)
## [432. All O`one Data Structure (Hard)](https://leetcode.com/problems/all-oone-data-structure "全 O(1) 的数据结构")

<p>Implement a data structure supporting the following operations:</p>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

[Next >](https://github.com/openset/leetcode/tree/master/problems/missing-element-in-sorted-array "Missing Element in Sorted Array")

## 1059. All Paths from Source Lead to Destination (Medium)
## [1059. All Paths from Source Lead to Destination (Medium)](https://leetcode.com/problems/all-paths-from-source-lead-to-destination "从始点到终点的所有路径")

<p>Given the <code>edges</code> of a directed graph, and two nodes <code>source</code> and <code>destination</code> of this graph, determine whether or not all paths starting from <code>source</code> eventually end at <code>destination</code>, that is:</p>

Expand Down
2 changes: 1 addition & 1 deletion problems/all-paths-from-source-to-target/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

[Next >](https://github.com/openset/leetcode/tree/master/problems/smallest-rotation-with-highest-score "Smallest Rotation with Highest Score")

## 797. All Paths From Source to Target (Medium)
## [797. All Paths From Source to Target (Medium)](https://leetcode.com/problems/all-paths-from-source-to-target "所有可能的路径")

<p>Given a directed, acyclic graph of <code>N</code> nodes.&nbsp; Find all possible paths from node <code>0</code> to node <code>N-1</code>, and return them in any order.</p>

Expand Down
Loading