码迷,mamicode.com
首页 >  
搜索关键字:maximum subsequence    ( 5146个结果)
leetcode Maximum Subarray(medium) /java
最大和子序列。 在这之前,我这类题目都不是很懂。 今天突然想通了。 最大的问题是如何舍弃不符合的数据。 在if判断中,就能果断丢掉前面的一大串。 ...
分类:编程语言   时间:2017-07-03 14:00:00    阅读次数:142
leetcode 53. Maximum Subarray
leetcode 53. Maximum Subarray Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For example, gi ...
分类:其他好文   时间:2017-07-03 12:07:01    阅读次数:136
JS—触摸事件、手势事件
JS—触摸事件、手势事件 dbclick触屏设备不支持双击事件。双击浏览器窗口,会放大画面。可以通过在head标签内加上这么一行: <meta name="viewport" content="width=device-width, minimum-scale=1.0,maximum-scale=1 ...
分类:Web程序   时间:2017-07-02 20:25:45    阅读次数:234
移动端的 meta 标签
viewport content参数: width viewport 宽度(数值/device-width) height viewport 高度(数值/device-height) initial-scale 初始缩放比例 maximum-scale 最大缩放比例 minimum-scale 最小 ...
分类:移动开发   时间:2017-07-02 19:48:57    阅读次数:304
LeetCode 104. Maximum Depth of Binary Tree (二叉树的最大深度)
Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farthest l ...
分类:其他好文   时间:2017-07-02 10:24:30    阅读次数:111
LeetCode 5_Longest Palindromic Substring
LeetCode 5_Longest Palindromic Substring 题目描写叙述: Given a string S, find the longest palindromic substring in S. You may assume that the maximum length ...
分类:其他好文   时间:2017-07-01 20:12:24    阅读次数:162
多线程常用基础
一:进程与线程的描述: 进程:每个进程都有独立的代码和数据空间(进程上下文),进程间的切换会有较大的开销,一个进程包含1~n个线程。(进程是资源分配的最小单位) 线程:同一类线程共享代码和数据空间,每个线程有独立的运行栈和程序计数器(PC),线程切换开销小。(线程是cpu调度的最小单位) 二:实现多 ...
分类:编程语言   时间:2017-07-01 18:20:13    阅读次数:214
392. Is Subsequence
https://leetcode.com/problems/is-subsequence/#/solutions http://www.cnblogs.com/EdwardLiu/p/6116896.html Follow Up: The best solution is to create a m ...
分类:其他好文   时间:2017-07-01 12:43:29    阅读次数:116
334. Increasing Triplet Subsequence
https://leetcode.com/problems/increasing-triplet-subsequence/#/description http://www.cnblogs.com/EdwardLiu/p/6092267.html 这个解法的思想也可以推广到任意 k ,k比较小或者为常 ...
分类:其他好文   时间:2017-07-01 10:58:05    阅读次数:152
九度OJ-1042-最长公共子序列(LCS)
题目1042:Coincidence 时间限制:1 秒 内存限制:32 兆 特殊判题:否 提交:4045 解决:2208 题目描述: Find a longest common subsequence of two strings. 输入: First and second line of each ...
分类:其他好文   时间:2017-06-30 19:46:03    阅读次数:185
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!