摘要: Given a binary search tree, write a function kthSmallest to find the kth smallest element in it. Note: You may assume k is always valid, 1 ≤ k ≤ BST's 阅读全文
posted @ 2015-07-03 23:53 Grandyang 阅读(24110) 评论(10) 推荐(2)
Fork me on GitHub