Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
hannut91 committed Aug 20, 2023
0 parents commit 45b325a
Show file tree
Hide file tree
Showing 28 changed files with 6,046 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .eslintrc.js
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',
},
};
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
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
20 changes: 20 additions & 0 deletions .gitignore
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
38 changes: 38 additions & 0 deletions README.md
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
```
Loading

0 comments on commit 45b325a

Please sign in to comment.