Skip to content

Commit 31d2036

Browse files
feat: husky 및 pre-commit hook 설정, prettierignore 추가
1 parent 3a7effc commit 31d2036

File tree

6 files changed

+1740
-8
lines changed

6 files changed

+1740
-8
lines changed

.github/workflows/update-README.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,9 @@ on:
77
push:
88
branches:
99
- main
10-
- manage
1110
pull_request:
1211
branches:
1312
- main
14-
- manage
1513
jobs:
1614
build:
1715
runs-on: ubuntu-latest

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11

2+
README.md
23
# Created by https://www.toptal.com/developers/gitignore/api/macos,webstorm
34
# Edit at https://www.toptal.com/developers/gitignore?templates=macos,webstorm
45

.prettierignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/node_modules
2+
.gitignore
3+
.prettierrc.json
4+
README.md
5+
/.github
6+
/.husky

level-2/줄-서는-방법.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
function solution(n, k) {
2+
const factorialList = getFactorialList(n);
3+
const numberList = Array.from(Array(n), (_, index) => n - (index + 1));
4+
return answer;
5+
}
6+
const getFactorialList = (n) => {
7+
const result = [1];
8+
for (let i = 2; i <= n; i++) {
9+
result.push(result[result.length - 1] * i);
10+
}
11+
return result;
12+
};

0 commit comments

Comments
 (0)