摘要: Add and Search Word - Data structure designDesign a data structure that supports the following two operations:void addWord(word)bool search(word)searc... 阅读全文
posted @ 2015-07-12 20:45 `Liok 阅读(470) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2015-07-12 19:31 `Liok 阅读(585) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2015-07-12 15:48 `Liok 阅读(615) 评论(0) 推荐(0) 编辑