LCA (1) 썸네일형 리스트형 [해커랭크] Binary Search Tree : Lowest Common Ancestor [JAVA] 문제링크 : www.hackerrank.com/challenges/binary-search-tree-lowest-common-ancestor/problem Binary Search Tree : Lowest Common Ancestor | HackerRank Given two nodes of a binary search tree, find the lowest common ancestor of these two nodes. www.hackerrank.com 음, 일단 문제 입력조건을 믿고 풀다가 10번을 넘게 시도해도 틀린 것을 해결하지 못했었다. 입력 조건은 데이터의 크기가 25이하인데 26이 들어가더라. 나중에 확인하고 배열의 크기를 늘렸다. 하... 어쨌든 제대로 풀진 못한 것 같다. 일단 작성한 in.. 이전 1 다음