문제 출처 https://www.acmicpc.net/problem/1991 정답 코드 1const input =require('fs').readFileSync('/dev/stdin').toString().trim().split('\n'); const n = Number(input.shift())function solution(n, arr){ const preOrderArr = []; const inOrderArr = []; const postOrderArr = []; const tree = {}; for(let i=0; i { if(node === '.') return; let [left, right] = tree[node] ..