摘要:
Add and Search Word - Data structure designDesign a data structure that supports the following two operations:void addWord(word)bool search(word)searc... 阅读全文
摘要:
Lowest Common Ancestor of a Binary Search TreeGiven a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in the BST.Ac... 阅读全文
摘要:
Palindrome Linked ListGiven a singly linked list, determine if it is a palindrome.Follow up:Could you do it in O(n) time and O(1) space?https://leetco... 阅读全文