码迷,mamicode.com
首页 >  
搜索关键字:maximum subsequence    ( 5146个结果)
LeetCode "Is Subsequence"
There are 3 possible approaches: DP, divide&conquer and greedy. And apparently, DP has O(n^2) complexity, DivideConquer can only be worse. Greedy can ...
分类:其他好文   时间:2016-10-24 07:42:05    阅读次数:234
LeetCode之104. Maximum Depth of Binary Tree
-------------------------------- 递归遍历即可 AC代码: /** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNod... ...
分类:其他好文   时间:2016-10-24 07:41:45    阅读次数:161
[LeetCode] Maximum XOR of Two Numbers in an Array
Given a non-empty array of numbers, a0, a1, a2, … , an-1, where 0 ≤ ai < 231. Find the maximum result of ai XOR aj, where 0 ≤ i, j < n. Could you do t ...
分类:其他好文   时间:2016-10-24 02:00:19    阅读次数:192
html5移动端知识点总结
第一章,控制html字体大小 1.1使用媒体查询,不同分辨率设置不同的html的font-size @(min-width:320px){ html{font-size:10px;} } @(min-width:360px){ html{font-size:11.25px;} } @(min-wid ...
分类:移动开发   时间:2016-10-23 20:21:26    阅读次数:203
前端 head 中mate 详解
<meta name="viewport" content="width=device-width,height=device-height,initial-scale=1.0, minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"> 1. wi ...
分类:其他好文   时间:2016-10-23 17:22:31    阅读次数:245
好!maximum-product-of-word-lengths
这道题目mock没有通过。超时了。。。。。。 原来题目解法的思路非常非常好! 原来做过的记录 ...
分类:其他好文   时间:2016-10-23 15:03:23    阅读次数:224
binary-tree-maximum-path-sum(mock)
注意: ...
分类:其他好文   时间:2016-10-23 12:18:11    阅读次数:241
Best Time to Buy and Sell Stock IV 解答
Question Say 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 m ...
分类:其他好文   时间:2016-10-23 07:50:32    阅读次数:271
LeetCode 104 Maximum Depth of Binary Tree
Problem: 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 f ...
分类:其他好文   时间:2016-10-23 07:37:00    阅读次数:187
手把手教你实现折线图之------安卓最好用的图表库hellocharts之最详细的使用介绍
因为项目需要搞一个折线图,按照日期显示相应的成绩,所以有了本文。 以前用过一次XCL-chart,但是感觉只适合固定图表,不去滑动的那种,因为你一滑动太卡了你懂得(毕竟作者好久没更新优化了),拙言大神我开玩笑的 ,毕竟我加你的群大半年了 - - 第二研究了一下achartenginee图表框架,一不 ...
分类:移动开发   时间:2016-10-22 23:46:56    阅读次数:712
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!