Leetcode 100문제 도전
[Leetcode 21/100] Kth Smallest Element in a BST - Medium
Llife
2021. 1. 20. 23:12
leetcode.com/problems/kth-smallest-element-in-a-bst/
Kth Smallest Element in a BST - LeetCode
Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview.
leetcode.com
문제 풀이 방식
BST이므로 트리순회의 특징을 활용
주의할 점
트리순회의 특징을 이해하고 있다면 쉽게 접근할 수 있는 문제였다.
소스코드