上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 14 下一页
摘要: 标题:Unique Binary Search Trees通过率:37.0%难度:中等Givenn, how many structurally uniqueBST's(binary search trees) that store values 1...n?For example,Givenn= ... 阅读全文
posted @ 2015-02-20 13:49 pku_smile 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 标题:Sort List通过率:21.3%难度:中等Sort a linked list inO(nlogn) time using constant space complexity.本题就是一个排序的问题,但是是针对单向链表去处理,那么问题关键就是怎么去处理链表,时间复杂度为nlogn,所以可以... 阅读全文
posted @ 2015-02-16 11:06 pku_smile 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 标题:Find Minimum in Rotated Sorted Array II通过率:31.1%难度:难Follow upfor "Find Minimum in Rotated Sorted Array":What ifduplicatesare allowed?Would this aff... 阅读全文
posted @ 2015-02-15 11:10 pku_smile 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 标题:Find Minimum in Rotated Sorted Array通过率:32.8%难度:中等Suppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e.,0 1 2 4 5 6 7migh... 阅读全文
posted @ 2015-02-15 11:07 pku_smile 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 标题:Maximum Subarray通过率:34.5%难度:中等Find the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, ... 阅读全文
posted @ 2015-02-13 11:25 pku_smile 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 题目:Search Insert Position通过率:35.3%难度:中等Given a sorted array and a target value, return the index if the target is found. If not, return the index wher... 阅读全文
posted @ 2015-02-12 11:37 pku_smile 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 题目Search in Rotated Sorted ArrayII通过率:31.4%难度:中等Follow up for "Search in Rotated Sorted Array":What ifduplicatesare allowed?Would this affect the run-... 阅读全文
posted @ 2015-02-12 11:30 pku_smile 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 标题:Search in Rotated Sorted Array通过率:28.9%难度:难Suppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e.,0 1 2 4 5 6 7might becom... 阅读全文
posted @ 2015-02-12 11:27 pku_smile 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 标题:Multiply Strings通过率: 20.8%难度:中等Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be ... 阅读全文
posted @ 2015-02-11 14:46 pku_smile 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 标题:Integer to Roman通过率:34.4%难度:中等Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.前面做过数字转罗马数字... 阅读全文
posted @ 2015-02-11 14:38 pku_smile 阅读(206) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 14 下一页