很简单,很有趣的一类题,好像在CF上出现过。。不太记得了 题意是给你N个1*N的矩形排列,要你框一个框,使得框出来的面积最大,就像这样: 也就是说,一个高度,他要向后扩展的条件是,它后面的所有矩形高度不小于它。 考虑一种最简单的情况,若整个矩形阵是升序的,那么显然 ans = max(ans,h[i ...
分类:
其他好文 时间:
2016-08-10 13:59:36
阅读次数:
119
首先,你得有NDK(木有的自行搜索) 准备好你的HelloWorld程序源码: 编译之: 不加pie fPIE编译项在Android L之后版本会报错:error: only position independent executables (PIE) are supported. 其他参数自行理解 ...
分类:
其他好文 时间:
2016-08-10 11:01:40
阅读次数:
458
MIC:the Maximal Information Coefficient,是用网格分法判断数据的集中程度的一个标准。 ...
分类:
其他好文 时间:
2016-08-07 06:13:29
阅读次数:
324
一、基本概念 dip : Density independent pixels ,设备无关像素。 dp :就是dip px : 像素 dpi :dots per inch , 直接来说就是一英寸多少个像素点。常见取值 120,160,240。我一般称作像素密度,简称密度 density : 直接翻译 ...
分类:
其他好文 时间:
2016-08-03 18:16:44
阅读次数:
213
原文:Android中dp和px之间进行转换 官方文档:http://developer.android.com/guide/practices/screens_support.html The density-independent pixel is equivalent to one physi ...
分类:
移动开发 时间:
2016-07-16 00:03:36
阅读次数:
260
上一节讲了16位定时器1,本节讲8位定时器3和定时器4! 1、综述 Timer 3 and Timer 4 are two 8-bit timers(8位定时器). Each timer has two independent capture/compare channels(独立的捕获/比较通道) ...
分类:
其他好文 时间:
2016-07-15 06:21:05
阅读次数:
474
Given a 2D binary matrix filled with 0's and 1's, find the largest square containing all 1's and return its area. Given a 2D binary matrix filled with ...
分类:
其他好文 时间:
2016-07-15 06:08:33
阅读次数:
111
原文:http://www.cnblogs.com/yaozhongxiao/archive/2014/07/14/3842908.html 一、基本概念 dip : Density independent pixels ,设备无关像素。 dp :就是dip px : 像素 dpi :dots pe ...
分类:
其他好文 时间:
2016-07-06 18:00:25
阅读次数:
199
Problem Description In graph theory, a pseudoforest is an undirected graph in which every connected component has at most one cycle. The maximal pseud ...
分类:
其他好文 时间:
2016-07-04 13:37:16
阅读次数:
143
Given a 2D binary matrix filled with 0's and 1's, find the largest square containing all 1's and return its area. For example, given the following mat ...
分类:
编程语言 时间:
2016-07-02 15:49:17
阅读次数:
141