Leetcode — 739. Daily Temperatures (中文)

1. 溫度陣列長度會介於 [1, 30000]之間
2. 各溫度的範圍會介於[ …

Leetcode — 1035. Uncrossed Lines (中文)

• A[i] == B[j];
• 當我們從A的某數連到 …

Leetcode — 1035. Uncrossed Lines

• A[i] == B[j];
• The line we draw does…

Leetcode — 5. Longest Palindromic Substring (中文)

Output: "bab" -> 因s字串中, 最長可組成的回文子字串長度是3, 答案回傳"aba"也算對

Leetcode — 5. Longest Palindromic Substring

Example
Output: "bab"
Note: "aba" is also a valid answer.

Leetcode — 980. Unique Paths III (中文)

• 1 代表這格是我們的起點位置, 整個矩陣中只會有一個起點
• 2 代表我們要走到的終點位置, 整個矩陣中只會有一個終點
• 0 代表我們可以走的格子
• -1 有障礙在這格上面, 我們不可穿越

Leetcode — 980. Unique Paths III

• 1 represents the starting square. There is exactly one starting square.
• 2 represents the ending square. There is exactly one ending square.
• 0 represents empty squares we can walk over.
• -1 represents obstacles that…

Leetcode — 904. Fruit Into Baskets (中文)

Anj

Click here to view all the stories posted on this blog: https://anj910.medium.com/bookmark-c95e4c52cf44

Get the Medium app