上一页 1 2 3 4 5 6 7 ··· 12 下一页
摘要: 问题描述Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letter... 阅读全文
posted @ 2015-08-11 15:01 Chapter 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 问题描述Given two integers representing the numerator and denominator of a fraction, return the fraction in string format.If the fractional part is repeat... 阅读全文
posted @ 2015-08-10 10:44 Chapter 阅读(116) 评论(0) 推荐(0) 编辑
摘要: Problem I翻转链表程序(简洁版)非递归ListNode reverseList(ListNode head) { ListNode pre = null; ListNode cur = head; while (cur != null ) { ListNode next = cur.ne... 阅读全文
posted @ 2015-08-09 20:11 Chapter 阅读(146) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/huagong_adu/article/details/7619665 阅读全文
posted @ 2015-08-09 15:32 Chapter 阅读(101) 评论(0) 推荐(0) 编辑
摘要: 问题描述Sort a linked list using insertion sort.解决思路1.设置first和last指针;2.插入分三种情况。程序public class Solution { public ListNode insertionSortList(ListNode hea... 阅读全文
posted @ 2015-08-09 11:52 Chapter 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 问题描述Given an unsorted integer array, find the first missing positive integer.For example,Given[1,2,0]return3,and[3,4,-1,1]return2.Your algorithm shoul... 阅读全文
posted @ 2015-08-09 11:08 Chapter 阅读(107) 评论(0) 推荐(0) 编辑
摘要: Best Time to Buy and Sell Stock ISay you have an array for which theithelement is the price of a given stock on dayi.If you were only permitted to com... 阅读全文
posted @ 2015-08-09 10:46 Chapter 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 问题描述Given an unsorted array of integers, find the length of the longest consecutive elements sequence. For example,Given [100, 4, 200, 1, 3, 2],The lo... 阅读全文
posted @ 2015-08-04 11:10 Chapter 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 问题描述Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the ... 阅读全文
posted @ 2015-08-02 10:00 Chapter 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 问题描述Given a set ofnon-overlappingintervals, insert a new interval into the intervals (merge if necessary).You may assume that the intervals were initi... 阅读全文
posted @ 2015-07-31 11:03 Chapter 阅读(134) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 12 下一页