The i-th person has weight people[i], and each boat can carry a maximum weight of limit. Each boat carries at most 2 people at the same time, provided ...
分类:
其他好文 时间:
2020-06-09 09:54:47
阅读次数:
67
package LeetCode_1143 /** * 1143. Longest Common Subsequence * https://leetcode.com/problems/longest-common-subsequence/description/ * * Given two str ...
分类:
其他好文 时间:
2020-06-07 12:48:01
阅读次数:
57
ERROR1118的报错信息分为两种: 1、ERROR 1118 (42000): Row size too large. The maximum row size for the used table type, not counting BLOBs, is 65535. This include ...
分类:
数据库 时间:
2020-06-07 09:24:07
阅读次数:
88
计算两个矩阵的成对平方欧氏距离 (pairwise squared Euclidean distance) 在度量学习, 图像检索, 行人重识别等算法的性能评估中有着广泛的应用, 本文讲的是如何在 NumPy 对其进行高效的实现. ...
分类:
其他好文 时间:
2020-06-05 15:33:13
阅读次数:
65
Given a binary array, find the maximum length of a contiguous subarray with equal number of 0 and 1. Example 1: Input: [0,1] Output: 2 Explanation: [0 ...
分类:
其他好文 时间:
2020-06-04 01:36:55
阅读次数:
59
7-1 Maximum Subsequence Sum(25 分) Given a sequence of K integers { N?1??, N?2??, ..., N?K?? }. A continuous subsequence is defined to be { N?i??, N?i+ ...
分类:
编程语言 时间:
2020-06-03 13:26:04
阅读次数:
52
https://leetcode-cn.com/problems/maximum-subarray/ 用DP,不断更新全局最大值与当前最大值 ...
分类:
其他好文 时间:
2020-06-02 13:15:24
阅读次数:
43
一、区别 给定两个字符串,求LCS 最长公共子串 (Longest Common Substring): 要求是连续的字符串 最长公共子序列(Longest Common Subsequence):要求子字符串相对顺序不变即可 二、动态规划求解 1、最长公共子串 给定两个字符串A 和 B 用二维数组 ...
分类:
其他好文 时间:
2020-06-01 23:43:29
阅读次数:
64
题目如下: Given a string s of zeros and ones, return the maximum score after splitting the string into two non-empty substrings (i.e. left substring and r ...
分类:
其他好文 时间:
2020-06-01 18:02:06
阅读次数:
65
https://wanghuaishi.wordpress.com/2017/02/21/%E5%9B%BE%E8%A7%A3%E6%9C%80%E5%A4%A7%E7%86%B5%E5%8E%9F%E7%90%86%EF%BC%88the-maximum-entropy-principle%EF% ...
分类:
其他好文 时间:
2020-05-31 21:42:52
阅读次数:
79