https://www.acmicpc.net/problem/2233 class Apple { constructor(pos1, parent) { this.position = [pos1]; this.parent = parent; this.height = parent?.height ? parent.height + 1 : 1; } mark(pos2) { this.position.push(pos2); }}const input = require('fs').readFileSync('./dev/stdin').toString().trim().split('\n');const N = +input[0];const binary = input[1].trim();const [t1, t2] = input[2].split(' '..
https://www.acmicpc.net/problem/11437 // https://www.acmicpc.net/problem/11437class Node { constructor(index) { this.index = index; this.parent = null; this.height = null; this.adj = []; } setHeight(p) { this.parent = p; this.height = p == -1 ? 0 : nodes[p].height + 1; this.adj.forEach((child) => { if (child != this.parent) { nodes[child].setHeight(this.index); } }); }}const input..
https://www.acmicpc.net/problem/3584 // https://www.acmicpc.net/problem/3584const input = require('fs') .readFileSync('./dev/stdin') .toString() .trim() .split('\n') .map((v) => v.split(' ').map(Number));let index = 0;class Node { constructor(value) { this.value = value; this.height = -1; this.parent = null; this.children = []; } setHeight(number) { this.height = number; this.children.forE..
https://www.acmicpc.net/problem/6615// https://www.acmicpc.net/problem/6615const input = require('fs') .readFileSync('./dev/stdin') .toString() .trim() .split('\n') .map((v) => v.split(' ').map(Number));input.pop();const answer = input .map((v) => { const [A, B] = v; const listA = getCollatzArray(A); const listB = getCollatzArray(B); let C; for (let i = listA.length - 1; i >= 0; i--) { co..
https://www.acmicpc.net/problem/13116 const input = require("fs").readFileSync("./dev/stdin").toString().trim().split("\n");input.shift();const answer = input .map((v) => { let [x, y] = v.split(" ").map(Number); while (x != y) { if (x > y) { x = Math.floor(x / 2); } else { ..
- Total
- Today
- Yesterday
- 동적프로그래밍
- DB 생성
- 서버개발
- 롱베케이션
- create db
- MySQL
- 다이나밍프로그래밍
- 그래프
- 개발자면접
- 면접질문
- 투포인터 연습
- 면접비
- 로드나인
- node.js
- 최소공통조상
- 투포인터
- MOD
- 은둔청년체험
- BFS
- 다이나믹프로그래밍
- create databases;
- 서버점검
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |