题意: 给一个数组,求严格递增的最长递增子序列的长度。思路: 开销是一个额外的O(n)的数组。lower_bound(begin,end,val)的功能是:返回第一个大于等于val的地址。 1 class Solution { 2 public: 3 int lengthOfLIS(ve...
分类:
其他好文 时间:
2015-11-16 22:38:20
阅读次数:
174
I've run out of adjectives!Java 之父詹姆斯·高斯林(James Gosling)在上周发布了关于讨论C语言之父丹尼斯·里奇(Dennis Ritchie)的简短博文(I've run out of adjectives),伯乐在线编译如下:丹尼斯·里奇辞世的新闻如.....
分类:
编程语言 时间:
2015-11-08 19:21:32
阅读次数:
196
原题链接在这里:https://leetcode.com/problems/the-skyline-problem/发现result里的点都是高度出现落差时出现的。把input 拆成左节点横坐标与高,右节点很坐标与高,为了区分,右节点的高设成负值。都插入verti List里然后排序。从前往后扫ve...
分类:
其他好文 时间:
2015-11-07 07:58:06
阅读次数:
275
一、maven依赖 <!--cxf-->
????????<dependency>
????????????<groupId>org.apache.cxf</groupId>
????????????<artifactId>cxf-core</artifactId>
????????????<ve...
分类:
编程语言 时间:
2015-11-06 16:34:44
阅读次数:
305
#include#include#include#include#includeusing namespace std;struct Point{ double x,y; Point(double x=0,double y=0):x(x),y(y){}};typedef Point Ve...
分类:
其他好文 时间:
2015-11-04 23:03:02
阅读次数:
283
json-lib的maven配置 项目中要用到json-lib,刚开始在pom.xml中按以下的方式做配置: <dependency>
????<groupId>net.sf.json-lib</groupId>
????<artifactId>json-lib</artifactId>
????<ve...
分类:
Web程序 时间:
2015-11-04 18:00:36
阅读次数:
208
I's very strange that I found the messy code.I 've never seen this before.this is the java code: /** * list * * @throws UnsupportedEnc...
分类:
其他好文 时间:
2015-11-04 13:16:27
阅读次数:
329
9/4/10 by Felix GeisendörferNode.js has generally caused two reactions in people I've introduced it to. Basically people either "got it" right away, o...
分类:
Web程序 时间:
2015-11-04 00:38:01
阅读次数:
503
Since the early days of Android, I've been looking for a robust way to build Android apps, keep the IO operations out of the UI Thread, avoid duplicat...
分类:
移动开发 时间:
2015-11-03 02:01:19
阅读次数:
482
从“空调煎鸡蛋”到“空调孵小鸡”,松下空调每一次新品发布都让人们惊呼:原来空调还可以这么“玩”!在9月23日举办的2016年松下健康空调新商品发布会上,松下空调原装整机进口空调怡爵VE系列惊艳亮相,并以其全进口配件以及健康呵护功效吸引包括媒体、经销商等来自全国各地嘉宾的广泛关注。本次引进的是松下历经...
分类:
其他好文 时间:
2015-11-02 22:55:43
阅读次数:
266