摘要:
题目: 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 ≤ B 阅读全文
posted @ 2015-11-26 22:43
YRB
阅读(2524)
评论(0)
推荐(0)
摘要:
题目: Given an integer array of size n, find all elements that appear more than ⌊ n/3 ⌋ times. The algorithm should run in linear time and in O(1) space 阅读全文
posted @ 2015-11-26 12:38
YRB
阅读(488)
评论(0)
推荐(0)
摘要:
题目: Given a sorted integer array without duplicates, return the summary of its ranges. For example, given [0,1,2,4,5,7], return ["0->2","4->5","7"]. 链 阅读全文
posted @ 2015-11-26 04:57
YRB
阅读(341)
评论(0)
推荐(0)
摘要:
题目:Implement a basic calculator to evaluate a simple expression string.The expression string contains onlynon-negativeintegers,+,-,*,/operators and em... 阅读全文
posted @ 2015-11-26 04:15
YRB
阅读(754)
评论(0)
推荐(0)

浙公网安备 33010602011771号