算法总结
superkhadijah
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
LeetCode 562
解法参考:https://www.youtube.com/watch?v=QnAqoK0GHToGiven a 01 matrix M, find the longest line of consecutive one in the matrix. The line could be horizontal, vertical, diagonal or anti-diagonal./** * 动态规划解法 * @param matrix * 01矩阵 * [[0.原创 2020-12-03 17:42:52 · 217 阅读 · 0 评论 -
二分查找(递归+while)、LIS(动态规划+二分)、 lowerBound、upperBound
二分查找(递归+while)、LIS(动态规划+二分)、lowerBound、upperBound/** *用while代替递归的二分查找 * @param array * @parram target * @return target的位置 */ public static int binarySearch(int[] array,int target){ int low = 0; int high = arr原创 2020-11-18 11:14:04 · 230 阅读 · 0 评论
分享