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: 2 days ago
JSON representation

✍🏼 algorithm playground repository

Awesome Lists containing this project

README

          

# algorithm-playground

> ✍🏼 algorithm playground repository

μ½”λ”©ν…ŒμŠ€νŠΈ μ‚¬μ΄νŠΈμ—μ„œ 문제λ₯Ό ν’€μ—ˆλ˜ λ‚΄μš©λ“€μ„ κΈ°λ‘ν•©λ‹ˆλ‹€


## πŸ“ λ°±μ€€μ—μ„œ 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();
});
```