An open API service indexing awesome lists of open source software.

https://github.com/chan9yu/algorithm-playground

✍🏼 algorithm playground repository
https://github.com/chan9yu/algorithm-playground

algorithm bfs-algorithm dfs-algorithm dynamic-programming javascript sorting-algorithms

Last synced: 3 months ago
JSON representation

✍🏼 algorithm playground repository

Awesome Lists containing this project

README

        

# algorithm-playground

> ✍🏼 algorithm playground repository

μ•Œκ³ λ¦¬μ¦˜μ— λŒ€ν•œ λ‚΄μš©μ„ ν•™μŠ΅ν•˜κ³  λ¬Έμ œν’€μ΄λ₯Ό κΈ°λ‘ν•©λ‹ˆλ‹€.


## πŸ—‚οΈ Documents

### [1μ£Όμ°¨] μ‹œκ°„ λ³΅μž‘λ„ & κ³΅κ°„λ³΅μž‘λ„

1. [μ‹œκ°„ λ³΅μž‘λ„λž€?](./__documents__/01-01-time-complexity.md)
1. [곡간 λ³΅μž‘λ„λž€?](./__documents__/01-02-space-complexity.md)


## πŸ“ λ°±μ€€μ—μ„œ Javascript μ΄μš©ν•˜κΈ°

### readline μ΄μš©ν•˜κΈ°

```js
const readline = require('readline').createInterface({
input: process.stdin,
output: process.stdout
});

let input = [];

readline
.on('line', function (line) {
input = line.split(' ').map(el => parseInt(el));
})
.on('close', function () {
// 이 μ•ˆμ— μ†”λ£¨μ…˜ μ½”λ“œ μž‘μ„±
let answer;
console.log(answer);
process.exit();
});
```