iT邦幫忙

鐵人檔案

2025 iThome 鐵人賽
回列表
自我挑戰組

leetcode 系列

解題leetcode 並且說明

參賽天數 24 天 | 共 24 篇文章 | 1 人訂閱 訂閱系列文 RSS系列文
DAY 11

leetcode 11. Container With Most Water

題目:You are given an integer array height of length n. There are n vertical lines...

2025-09-25 ‧ 由 412570510 分享
DAY 12

leetcode 12. Integer to Roman

題目:七種不同的符號代表具有以下數值的羅馬數字:羅馬數字由小數位數值的轉換結果由高到低依序相加而成。將小數位數值轉換為羅馬數字有以下規則: 如果值不是以 4 或...

2025-09-26 ‧ 由 412570510 分享
DAY 13

leetcode 13. Roman to Integer

題目:例如, 2寫成II 羅馬數字,就是兩個一相加。12寫成 XII,就是簡單的X + II。數字27寫成XXVII,就是XX + V + II。 羅馬數字通常...

2025-09-27 ‧ 由 412570510 分享
DAY 14

leetcode 14. Longest Common Prefix

題目:Write a function to find the longest common prefix string amongst an array of...

2025-09-28 ‧ 由 412570510 分享
DAY 15

leetcode 15. 3Sum

題目:Given an integer array nums, return all the triplets [nums[i], nums[j], nums[...

2025-09-29 ‧ 由 412570510 分享
DAY 16

leetcode 16. 3Sum Closest

題目:Given an integer array nums of length n and an integer target, find three int...

2025-09-30 ‧ 由 412570510 分享
DAY 17

leetcode 17. Letter Combinations of a Phone Number

題目:Given a string containing digits from 2-9 inclusive, return all possible lett...

2025-10-01 ‧ 由 412570510 分享
DAY 18

leetcode 18. 4Sum

題目:Given an array nums of n integers, return an array of all the unique quadrupl...

2025-10-02 ‧ 由 412570510 分享
DAY 19

leetcode 19. Remove Nth Node From End of List

題目:Given the head of a linked list, remove the nth node from the end of the list...

2025-10-03 ‧ 由 412570510 分享
DAY 20

leetcode 20. Valid Parentheses

題目:Given a string s containing just the characters '(', ')', '{', '}', '[' and '...

2025-10-04 ‧ 由 412570510 分享