摘要:
https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/ Given a binary search tree (BST), find the lowest common ancestor (LCA) 阅读全文
摘要:
https://leetcode.com/problems/palindrome-linked-list/ Given a singly linked list, determine if it is a palindrome. Follow up:Could you do it in O(n) t 阅读全文
摘要:
https://leetcode.com/problems/kth-smallest-element-in-a-bst/ Given a binary search tree, write a function kthSmallest to find the kth smallest element 阅读全文
摘要:
https://leetcode.com/problems/excel-sheet-column-title/Given a positive integer, return its corresponding column title as appear in an Excel sheet.For... 阅读全文
摘要:
https://leetcode.com/problems/majority-element-ii/Given an integer array of sizen, find all elements that appear more than⌊ n/3 ⌋times. The algorithm ... 阅读全文