题目: 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
原题链接在这里:https://leetcode.com/problems/longest-uncommon-subsequence-ii/#/description 题目: Given a list of strings, you need to find the longest uncommon ...
分类:
其他好文 时间:
2017-06-20 10:56:39
阅读次数:
191
题目:Increasing Triplet Subsequence Given an unsorted array return whether an increasing subsequence of length 3 exists or not in the array. Formally th ...
分类:
其他好文 时间:
2017-06-19 13:09:54
阅读次数:
218
1.meta标签http-equiv属性语法格式: 2.content-type (显示字符集的设定) 设定页面使用的字符集 3.keywords (关键字) 4.description (描述) 5.format-detection 格式检测 1》 忽略将页面中的数字识别为电话号码 2》告诉设备不 ...
分类:
移动开发 时间:
2017-06-19 09:47:25
阅读次数:
206
Total Accepted: 5540Total Submissions: 14066Difficulty: EasyContributors:love_FawnWe define a harmonious array is an array where the difference betwee... ...
分类:
其他好文 时间:
2017-06-19 00:38:08
阅读次数:
221
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 a group of two strings, you need to find the longest uncommon subsequence of this group of two strings. The longest uncommon subsequence is ...
分类:
编程语言 时间:
2017-06-18 18:13:52
阅读次数:
163