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
- Host: GitHub
- URL: https://github.com/chan9yu/algorithm-playground
- Owner: chan9yu
- Created: 2021-12-16T13:49:13.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-03-03T09:31:12.000Z (4 months ago)
- Last Synced: 2025-03-03T10:33:17.777Z (4 months ago)
- Topics: algorithm, bfs-algorithm, dfs-algorithm, dynamic-programming, javascript, sorting-algorithms
- Language: JavaScript
- Homepage:
- Size: 150 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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();
});
```