106. Construct Binary Tree from Inorder and Postorder Traversal
문제 중위순회(inorder), 후위순회(postorder) 값이 int[] 형 배열로 주어졌을때 이진트리를 만드는 문제입니다. int[] inorder = {9, 3, 15, 20, 7}; int[] postorder = {9, 15, 7, 20, 3}; result = [3, 9, null, null, 20, 15, 7] 문제 풀이 기존 105번 문제와 동일하지만 preorder 값 대신 postorder 가 주어집니다. https://moonstorage.tistory.com/10 105. Construct Binary Tree from Preorder and Inorder Traversal 문제 int[] 형 배열로 전위순회(preorder), 중위순회(inorder) 값이 주어졌을때 Binary..
2023. 12. 27.