![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
算法总结
superkhadijah
这个作者很懒,什么都没留下…
展开
-
LeetCode 562
解法参考:https://www.youtube.com/watch?v=QnAqoK0GHTo Given 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 · 161 阅读 · 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 · 163 阅读 · 0 评论