摘要: Design a data structure that supports the following two operations: search(word) can search a literal word or a regular expression string containing o 阅读全文
posted @ 2018-02-14 04:51 逸朵 阅读(149) 评论(0) 推荐(0) 编辑
摘要: Inorder Successor in Binary Search Tree 2.8 In Binary Tree, Inorder successor of a node is the next node in Inorder traversal of the Binary Tree. Inor 阅读全文
posted @ 2018-02-14 02:08 逸朵 阅读(208) 评论(0) 推荐(0) 编辑
摘要: Given a non-empty binary search tree and a target value, find k values in the BST that are closest to the target. Note: Given target value is a floati 阅读全文
posted @ 2018-02-14 01:52 逸朵 阅读(309) 评论(0) 推荐(0) 编辑