Skip to content

Commit c218258

Browse files
authored
Merge branch 'main' into feat/week3
2 parents 0a4e7f1 + f0ba3e8 commit c218258

File tree

260 files changed

+7657
-4
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

260 files changed

+7657
-4
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @DaleStudy/coach

.github/labeler.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
js:
2+
- changed-files:
3+
- any-glob-to-any-file:
4+
- "**/*.js"
5+
6+
ts:
7+
- changed-files:
8+
- any-glob-to-any-file:
9+
- "**/*.ts"
10+
11+
py:
12+
- changed-files:
13+
- any-glob-to-any-file:
14+
- "**/*.py"
15+
16+
java:
17+
- changed-files:
18+
- any-glob-to-any-file:
19+
- "**/*.java"
20+
21+
c++:
22+
- changed-files:
23+
- any-glob-to-any-file:
24+
- "**/*.cpp"
25+
26+
swift:
27+
- changed-files:
28+
- any-glob-to-any-file:
29+
- "**/*.swift"
30+
31+
kotlin:
32+
- changed-files:
33+
- any-glob-to-any-file:
34+
- "**/*.kt"
35+
36+
go:
37+
- changed-files:
38+
- any-glob-to-any-file:
39+
- "**/*.go"
40+
41+
elixir:
42+
- changed-files:
43+
- any-glob-to-any-file:
44+
- "**/*.exs"

.github/pull_request_template.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
## 답안 제출 문제
2+
3+
<!--
4+
자신의 수준이나 일정에 맞게 금주에 푸시기로 정한 문제들만 나열해주세요.
5+
코드 검토자들이 PR 승인 여부를 결정할 때 도움이 됩니다.
6+
-->
7+
8+
- [ ] 문제 1
9+
- [ ] 문제 2
10+
- [ ] 문제 3
11+
12+
## 체크 리스트
13+
14+
- [ ] PR을 프로젝트에 추가하고 Week를 현재 주차로 설정해주세요.
15+
- [ ] 바로 앞에 PR을 열어주신 분을 코드 검토자로 지정해주세요.
16+
- [ ] 문제를 모두 푸시면 프로젝트에서 Status를 `In Review`로 설정해주세요.
17+
- [ ] 코드 검토자 1분 이상으로부터 승인을 받으셨다면 PR을 병합해주세요.

.github/workflows/automation.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,16 @@ jobs:
1111
pull-requests: write
1212
steps:
1313
- uses: toshimaru/[email protected]
14+
15+
label-lang:
16+
runs-on: ubuntu-latest
17+
continue-on-error: true
18+
19+
permissions:
20+
contents: read
21+
pull-requests: write
22+
23+
steps:
24+
- uses: actions/labeler@v5
25+
with:
26+
repo-token: ${{ github.token }}

.github/workflows/integration.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: 🔄 Integration
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
linelint:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
with:
12+
fetch-depth: 0
13+
14+
- name: Find files missing end line break
15+
run: |
16+
files=$(git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.sha }})
17+
success=true
18+
for file in $files; do
19+
if [ "$(tail -c 1 $file | wc -l)" -eq 0 ]; then
20+
echo "- $file" >> $GITHUB_STEP_SUMMARY
21+
success=false
22+
fi
23+
done
24+
25+
if [ "$success" = false ]; then
26+
echo -e "\n:warning: 위 파일들의 끝에 누락된 줄 바꿈을 추가해 주세요." >> $GITHUB_STEP_SUMMARY
27+
exit 1
28+
fi

.linelint.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# 'true' will fix files
2+
autofix: false
3+
4+
# list of paths to ignore, uses gitignore syntaxes (executes before any rule)
5+
ignore:
6+
- "*.md"
7+
8+
rules:
9+
# checks if file ends in a newline character
10+
end-of-file:
11+
# set to true to enable this rule
12+
enable: true
13+
14+
# set to true to disable autofix (if enabled globally)
15+
disable-autofix: false
16+
17+
# if true also checks if file ends in a single newline character
18+
single-new-line: false

binary-tree-level-order-traversal/WhiteHyun.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,4 +104,4 @@ class Solution {
104104

105105
return array
106106
}
107-
}
107+
}

climbing-stairs/flynn.cpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
class Solution {
2+
public:
3+
int climbStairs(int n) {
4+
vector<int> memo(2, 1);
5+
6+
for (int i = 2; i <= n; i++) {
7+
memo.push_back(memo[i - 1] + memo[i - 2]);
8+
}
9+
10+
return memo[n];
11+
}
12+
13+
};

coin-change/EGON.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def solveWithDP(self, coins: List[int], amount: int) -> int:
2727

2828
if amount < coins[0]:
2929
return -1
30-
30+
3131
dp = [float('inf')] * (amount + 1)
3232

3333
for coin in coins:

coin-change/flynn.cpp

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
class Solution {
2+
public:
3+
int coinChange(vector<int>& coins, int amount) {
4+
int MAX = 10000 + 1;
5+
vector<int> memo(amount + 1, MAX);
6+
memo[0] = 0;
7+
8+
for (int i = 1; i <= amount; i++) {
9+
for (auto coin : coins) {
10+
if (i - coin >= 0) {
11+
memo[i] = min(memo[i], memo[i - coin] + 1);
12+
}
13+
}
14+
}
15+
16+
return memo[amount] == MAX ? -1 : memo[amount];
17+
}
18+
19+
};

0 commit comments

Comments
 (0)