ChenZengze's Blog


  • 首页

  • 归档

binarySearch

发表于 2017-12-16 | | 阅读次数
Description二分查找,是arrays里常考的习题。对于同一题型,有几种写法,有的是start < end,有的是start + 1 < end。判断和中间值大小比较之后,有的是start = mid,有的是start = mid + 1等。并没有一个同一的解法,这里先给出一个统 ...
阅读全文 »

【Leetcode】 118. Pascal's Triangle

发表于 2017-11-07 | | 阅读次数
DescriptionGiven numRows, generate the first numRows of Pascal’s triangle. For example, given numRows = 5,Return [ [1], [1,1], [1,2,1], [1,3,3,1], ...
阅读全文 »

LogisticRegression

发表于 2017-10-28 | | 阅读次数
Machine Learning谈到机器学习算法,从理解上来说,就是从已经有的数据首先要谈到监督学习和非监督学习。 监督学习,定义是利用一组已知类别的样本调整分类器参数,使其达到所要求性能的过程。这个理解很简单,就是我们通过算法面试,需要做一些算法题,如果有答案,我们就知道自己做的对不对,这样自 ...
阅读全文 »

【Leetcode】120. Triangle

发表于 2017-10-21 | | 阅读次数
DescriptionGiven a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below. For example, g ...
阅读全文 »

【Leetcode】Best Time to Buy and Sell Stock III

发表于 2017-10-03 | | 阅读次数
DescriptionSay you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You ...
阅读全文 »

【Leetcode】122. Best Time to Buy and Sell Stock II

发表于 2017-09-17 | | 阅读次数
DescriptionSay you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You ...
阅读全文 »

【Leetcode】121. Best Time to Buy and Sell Stock

发表于 2017-09-09 | | 阅读次数
DescriptionSay you have an array for which the ith element is the price of a given stock on day i. If you were only permitted to complete at most one ...
阅读全文 »

【Leetcode】128. Longest Consecutive Sequence

发表于 2017-09-07 | | 阅读次数
DescriptionGiven an unsorted array of integers, find the length of the longest consecutive elements sequence. For example,Given [100, 4, 200, 1, 3, 2] ...
阅读全文 »

【Leetcode】152. Maximum Product Subarray

发表于 2017-09-07 | | 阅读次数
DescriptionFind the contiguous subarray within an array (containing at least one number) which has the largest product. For example, given the array [ ...
阅读全文 »

【Leetcode】154. Find Minimum in Rotated Sorted Array II

发表于 2017-09-06 | | 阅读次数
DescriptionSuppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 ...
阅读全文 »
12…5
陈曾泽

陈曾泽

静水流深

41 日志
3 标签
GitHub Twitter Instagram
© 2017 陈曾泽
由 Hexo 强力驱动
主题 - NexT.Pisces