---
# System prepended metadata

title: 陣列練習題 (Array)

---

# 陣列練習題 (Array)

## 基礎題

| 題號 | 題目名稱| 難度 | 備註 | 題解 |
| ---- | ------------------------------------------------------------------------ | -------------------------------- |:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:| ----------------------------------------------------------- |
|121|[Best time to buy and sell stock 最佳買股票的時機](https://leetcode.com/problems/best-time-to-buy-and-sell-stock/description/)|<font color=DarkGreen>Easy</font>|貪婪| [最佳買股票的時機題解](https://leetcode.com/problems/best-time-to-buy-and-sell-stock/solutions/1735550/python-javascript-easy-solution-with-very-clear-explanation/) |
|136|[Single number 唯一的數字](https://leetcode.com/problems/single-number/description/)|<font color=DarkGreen>Easy</font>|哈希表/位運算|[唯一的數字題解](https://hackmd.io/@paxton0222/rk825Brgh)|
|217|[Contains duplicate 包含重複項](https://leetcode.com/problems/contains-duplicate/description/)|<font color=DarkGreen>Easy</font>||[包含重複項題解](https://hackmd.io/@paxton0222/HyX7RRWl2)|
|169|[Majority element 多數元素](https://leetcode.com/problems/majority-element/)|<font color=DarkGreen>Easy</font>||[多數元素題解](https://hackmd.io/@paxton0222/rkH23c-gh)|
|26|[Remove Duplicates from Sorted Array](https://leetcode.com/problems/remove-duplicates-from-sorted-array/)|<font color=DarkGreen>Easy</font>||[Remove Duplicates form Sorted Array 題解](https://hackmd.io/@paxton0222/S1icf981a)|

## 進階題

| 題號 | 題目名稱                                                                                                                                            | 難度                             |  備註  | 題解                                                                      |
| ---- | --------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------- |:------:| ------------------------------------------------------------------------- |
| 80   | [Remove Duplicates from Sorted Array II 移除升序陣列中的重複項2](https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/description/) | <font color=Orange>Medium</font> |        | [移除升序陣列中的重複項2](https://hackmd.io/@paxton0222/ByYGu7-tn)        |
| 189  | [Rotate Array 反轉陣列](https://leetcode.com/problems/rotate-array/description/)                                                                    | <font color=Orange>Medium</font> |        | [反轉陣列]()                                                              |
| 122  | [Best time to buy and sell stock II 最佳買股票的時機II](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/description/)              | <font color=Orange>Medium</font> |  貪婪  | [最佳買股票的時機II題解](https://hackmd.io/@paxton0222/rk1f9RmKn)         |
| 55   | [Jump Game](https://leetcode.com/problems/jump-game/description/)                                                                                   | <font color=Orange>Medium</font> |  貪婪  | [Jump Game 題解](https://hackmd.io/@paxton0222/r1Pufy4Kn)                 |
| 45   | [Jump Game II](https://leetcode.com/problems/jump-game-ii/description/)                                                                             | <font color=Orange>Medium</font> |  貪婪  | [Jump Game II 題解](https://hackmd.io/@paxton0222/rkMvTOrY3)              |
| 134  | [Gas station](https://leetcode.com/problems/gas-station/description/)                                                                               | <font color=Orange>Medium</font> |  貪婪  | [Gas station 題解](https://hackmd.io/@paxton0222/ByQt7Kqth)               |
| 11   | [Container With Most Water](https://leetcode.com/problems/container-with-most-water/description/)                                                   | <font color=Orange>Medium</font> | 雙指針 | [Container With Most Water 題解](https://hackmd.io/@paxton0222/HkDbb6ith) |
| 135|[Candy](https://leetcode.com/problems/candy/description/)|<font color=Red>Hard</font>|貪婪|[Candy 題解](https://hackmd.io/@paxton0222/ryM_xcjt2)|
|42|[Trapping Rain Water](https://leetcode.com/problems/trapping-rain-water/description/)|<font color=Red>Hard</font>|雙指針|[Trapping Rain Water 題解](https://hackmd.io/@paxton0222/ry_5s2oK3)|
|209|[Minimum Size Subarray Sum](https://leetcode.com/problems/minimum-size-subarray-sum/description/?envType=study-plan-v2&envId=top-interview-150)|<font color=Orange>Medium</font>|雙指針|[Minimum Size Subarray Sum 題解](https://hackmd.io/@paxton0222/Syk-8lJyT)|
|31|[Next Permutation](https://leetcode.com/problems/next-permutation/description/)|<font color=Orange>Medium</font>|兩遍掃描|[Next Permutation 題解](https://hackmd.io/@paxton0222/S1xfCxJ3b-g)|
|260|[Single Number iii](https://leetcode.com/problems/single-number-iii/description/)|<font color=Orange>Medium</font>|位運算、Hash Set|[Single Number iii 題解](https://hackmd.io/@paxton0222/rJBob1nWbx)|