-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 45b325a
Showing
28 changed files
with
6,046 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
module.exports = { | ||
env: { | ||
es2021: true, | ||
node: true, | ||
jest: true, | ||
}, | ||
extends: 'airbnb-base', | ||
overrides: [ | ||
{ | ||
env: { | ||
node: true, | ||
}, | ||
files: [ | ||
'.eslintrc.{js,cjs}', | ||
], | ||
parserOptions: { | ||
sourceType: 'script', | ||
}, | ||
}, | ||
], | ||
parserOptions: { | ||
ecmaVersion: 'latest', | ||
sourceType: 'module', | ||
}, | ||
rules: { | ||
'operator-assignment': 'off', | ||
'max-classes-per-file': 'off', | ||
'no-plusplus': 'off', | ||
'no-restricted-syntax': 'off', | ||
'no-param-reassign': 'off', | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-22.04 | ||
|
||
timeout-minutes: 1 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Node.js setup | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.16.1 | ||
cache: 'npm' | ||
- name: Cache node modules | ||
id: cache-npm | ||
uses: actions/cache@v3 | ||
with: | ||
path: node_modules | ||
key: ${{ runner.os }}-${{ hashFiles('package-lock.json') }} | ||
restore-keys: ${{ runner.os }}-${{ hashFiles('package-lock.json') }} | ||
- name: Install dependecies | ||
if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }} | ||
run: npm ci | ||
- run: npm test | ||
- run: npm run lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# intellij | ||
.idea/* | ||
|
||
# NPM Cache files | ||
.npm | ||
|
||
# nodejs | ||
node_modules/ | ||
|
||
# VS Code | ||
.vscode/* | ||
|
||
# Windows thumbnail cache files | ||
Thumbs.db | ||
Thumbs.db:encryptable | ||
ehthumbs.db | ||
ehthumbs_vista.db | ||
|
||
# macOS | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# 자료구조와 알고리즘 3주차 과제 | ||
|
||
- 정렬 알고리즘을 보고 그림을 그리며 이해합니다. | ||
- 정렬 알고리즘 코드를 분석하고 그림을 그리며 이해합니다. | ||
- 정렬 알고리즘을 코드로 실제로 구현해 봅니다. | ||
|
||
1. 버블 정렬 | ||
2. 선택 정렬 | ||
3. 삽입 정렬 | ||
4. 셀 정렬 | ||
5. 머지 정렬 | ||
6. 퀵 정렬 | ||
7. 힙 정렬 | ||
|
||
## 패키지 설치 | ||
|
||
```bash | ||
$ npm ci | ||
``` | ||
|
||
## 제한조건 | ||
|
||
- 모든 테스트를 통과해야 합니다. | ||
- ESLint를 통과해야 합니다. | ||
- 스스로 문제 해결법을 떠올리기 위해 Copilot은 사용하지 말아주세요. | ||
|
||
## 테스트 실행 방법 | ||
|
||
```bash | ||
# 의존성 설치 | ||
$ npm ci | ||
# 테스트 실행 | ||
$ npm test | ||
# 테스트 실행 (watch 모드) | ||
$ npm run watch | ||
# 특정 문제만 테스트 실행 | ||
$ npm run watch -- problem-1 | ||
``` |
Oops, something went wrong.