Tagged in

Leetcode Medium

數據共筆
數據共筆
Followers
5
Elsewhere
More, on Medium

LeetCode: (Python)(List) Merge Intervals

題目連結: https://leetcode.com/problems/merge-intervals/description/?envType=study-plan-v2&envId=top-interview-150

題意解析

  • 給予一系列的數字,如果兩個數組可以組成一個大數組,就合成一個
  • 最後將結合完的數組輸出

LeetCode: (Python)(List) Group Anagrams

題目連結: https://leetcode.com/problems/group-anagrams/description/?envType=study-plan-v2&envId=top-interview-150

題意解析

  • 題目給予一個 list,其中有非常多小寫英文字母組成的詞
  • 有許多詞的組成完全相同,請把組成相同的詞彙分組放在一起

LeetCode: (Python)(Array) Longest Substring Without Repeating Characters

題目連結: https://leetcode.com/problems/longest-substring-without-repeating-characters/description/?envType=study-plan-v2&envId=top-interview-150

題意解析


LeetCode: (Python)(Array) Minimum Size Subarray Sum

題目連結: https://leetcode.com/problems/minimum-size-subarray-sum/description/?envType=study-plan-v2&envId=top-interview-150

題意解析

  • 找出一段連續的 sub-list,總和等於 target

LeetCode: (Python)(Array)3Sum

題目連結: https://leetcode.com/problems/3sum/description/?envType=study-plan-v2&envId=top-interview-150

題意解析

  • nums 中挑出三個數字加起來要是0
  • 只保留不重複的三個數字,-1, 0, 1 和 0, -1, 1是一樣