题目: 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 may co ...
分类:
编程语言 时间:
2017-06-21 11:29:25
阅读次数:
188
下午打了一个小盹,等醒来的时候,启动Tomcat,Tomcat报了满屏的警告。。。 提醒服务器内存不足,解决方案是: 在Tomcat的安装目录下,conf文件夹里面的context.xml,添加: ...
分类:
系统相关 时间:
2017-06-20 22:23:44
阅读次数:
374
1. 强制让文档的宽度与设备的宽度保持1:1,并且文档最大的宽度比例是1.0,且不允许用户点击屏幕放大浏览。 <meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-sc ...
分类:
Web程序 时间:
2017-06-20 17:50:50
阅读次数:
173
Given m arrays, and each array is sorted in ascending order. Now you can pick up two integers from two different arrays (each array picks one) and cal ...
分类:
其他好文 时间:
2017-06-20 13:30:36
阅读次数:
125
1.meta标签http-equiv属性语法格式: 2.content-type (显示字符集的设定) 设定页面使用的字符集 3.keywords (关键字) 4.description (描述) 5.format-detection 格式检测 1》 忽略将页面中的数字识别为电话号码 2》告诉设备不 ...
分类:
移动开发 时间:
2017-06-19 09:47:25
阅读次数:
206
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-06-18 23:33:51
阅读次数:
171
Given m arrays, and each array is sorted in ascending order. Now you can pick up two integers from two different arrays (each array picks one) and cal ...
分类:
其他好文 时间:
2017-06-18 13:27:33
阅读次数:
219
https://leetcode.com/problems/maximum-size-subarray-sum-equals-k/#/description Given an array nums and a target value k, find the maximum length of a ...
分类:
其他好文 时间:
2017-06-18 11:50:18
阅读次数:
161
124. Binary Tree Maximum Path Sum 题目链接:https://leetcode.com/problems/binary-tree-maximum-path-sum/#/description 题目大意:给定一棵二叉树,查找该二叉树的最大路径和。路径的定义是,从某个结点 ...
分类:
其他好文 时间:
2017-06-17 20:47:29
阅读次数:
154
Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. Example: Example: ...
分类:
其他好文 时间:
2017-06-17 12:11:51
阅读次数:
128