---
# System prepended metadata

title: Jan week1
tags: [leetcode, Daily contest]

---

###### tags: `leetcode` `Daily contest`


# Jan week1
[toc]
## 290. Word Pattern (eazy)
## 520. Detect Capital (eazy)
## 944. Delete Columns to Make Sorted (eazy)
## 2244. Minimum Rounds to Complete All Tasks (medium)

![](https://i.imgur.com/QwxmrDx.png)

### 要點 
- greedy

### 難點
- 不用 greedy 用其他方法會浪費太多時間
### 想法
- 計算每個數字出現的次數
- 發現到如果可以被 3 整除那就直接/3
- 若不能被 3 整除 那就必須多放個 2 所以 /3 後 +1
    - mod 為 1 or 2 都一樣 
        - mod 為 1
            - 3*(n-1) + 2 + 2
        - mod 為 2 
            - 3*n + 2

## 947. Minimum Number of Arrows to Burst Balloons (medium)
![](https://i.imgur.com/Iz7kbd5.png)

### 要點
greedy
### 難點
0
### 想法
sort

考慮
[ _ _ _ _ _ _ _ _ _ ]
[ _ _ _ _ _ _ _ _ _ ]
[ _ _ _ _ _ _ _ _ _ ]
## 1833. Maximum Ice Cream Bars
## 949. Gas Station