上一页 1 2 3 4 5 6 7 8 ··· 51 下一页
2015年1月23日
摘要: Fraction to Recurring Decimal2015.1.23 15:59Given two integers representing the numerator and denominator of a fraction, return the fraction in string... 阅读全文
posted @ 2015-01-23 16:40 zhuli19901106 阅读(266) 评论(0) 推荐(0) 编辑
摘要: Compare Version Numbers2015.1.23 15:27Compare two version numbersversion1andversion1.Ifversion1>version2return 1, ifversion1 n2) { 25 retu... 阅读全文
posted @ 2015-01-23 15:56 zhuli19901106 阅读(296) 评论(0) 推荐(0) 编辑
摘要: Maximum Gap2015.1.23 15:00Given an unsorted array, find the maximum difference between the successive elements in its sorted form.Try to solve it in l... 阅读全文
posted @ 2015-01-23 15:17 zhuli19901106 阅读(138) 评论(0) 推荐(0) 编辑
摘要: Find Peak Element2015.1.23 14:28A peak element is an element that is greater than its neighbors.Given an input array wherenum[i] ≠ num[i+1], find a pe... 阅读全文
posted @ 2015-01-23 14:38 zhuli19901106 阅读(250) 评论(0) 推荐(0) 编辑
摘要: Intersection of Two Linked Lists2015.1.23 12:53Write a program to find the node at which the intersection of two singly linked lists begins.For exampl... 阅读全文
posted @ 2015-01-23 13:31 zhuli19901106 阅读(318) 评论(0) 推荐(0) 编辑
摘要: Min Stack2015.1.23 12:13Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. push(x) -- Push element x o... 阅读全文
posted @ 2015-01-23 12:27 zhuli19901106 阅读(188) 评论(0) 推荐(0) 编辑
摘要: Find Minimum in Rotated Sorted Array II2015.1.23 11:41Suppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e.,0 1 2 4 5 6 7mig... 阅读全文
posted @ 2015-01-23 12:13 zhuli19901106 阅读(182) 评论(0) 推荐(0) 编辑
2015年1月22日
摘要: Find Minimum in Rotated Sorted Array2015.1.22 07:07Suppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e.,0 1 2 4 5 6 7might ... 阅读全文
posted @ 2015-01-22 07:15 zhuli19901106 阅读(194) 评论(0) 推荐(0) 编辑
2014年8月1日
摘要: 以下资料完全是随手记录,没有任何顺序或关联,需要用直接^F找就行了。 1. ps aux指令详解 http://blog.csdn.net/hanner_cheung/article/details/6081440 2. Linux下配置Apache php http://lelong.iteye. 阅读全文
posted @ 2014-08-01 00:19 zhuli19901106 阅读(871) 评论(0) 推荐(0) 编辑
2014年7月8日
摘要: 2014.07.08 22:43简介: “搜索”与“剪枝”几乎是如影随形的。此处的“搜索”指的是带有回溯算法的深度优先搜索。 在之前的“Minimax策略”中我们给出了一个三连棋的程序,运行后你就知道计算一步棋要花多少时间。 为了计算最优的一步棋,我们可能需要递归9万多次。毫无疑问这种阶乘式的... 阅读全文
posted @ 2014-07-08 23:14 zhuli19901106 阅读(1186) 评论(0) 推荐(2) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 51 下一页