本文转载自: https://www.zybuluo.com/oro-oro/note/145250 JebInstance可以通过getUI()方法来获得jeb.api.ui.JebUI。 JebUI 下面有很多View,如AssemblyView, JavaView等等。 JebUI可以通过ge ...
题目链接:51nod 1305 Pairwise Sum and Divide 看完题我想都没想就直接暴力做了,AC后突然就反应过来了。。。 Floor( (a+b)/(a*b) )=Floor( (1/b)+(1/a) ) 当a=1时:若b=1,则该式等于2,否则该式等于1 当a=b=2时:该式等 ...
分类:
其他好文 时间:
2016-11-01 01:02:53
阅读次数:
226
HDU 5783 Divide the Sequence(数列划分) Time Limit: 5000/2500 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Problem Description - 题目描述 HDU 578 ...
分类:
其他好文 时间:
2016-10-26 22:34:06
阅读次数:
557
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
理解I2C设备驱动框架,主要围绕四个结构体去分析就容易了。 struct i2c_algorithm:提供I2C协议的实现的操作,如:master_xfer实现数据收发的最基本方法。 struct i2c_adapter:每一个i2c_adapter都代表一个I2C物理接口,一个cpu可以有多个I2 ...
分类:
其他好文 时间:
2016-10-23 17:32:32
阅读次数:
206
最近需要做一个将手机中保存的JSON文件转换成容易阅读的Excel文件,故做了一个小demo,现将该demo用到的一些部件记录一下。
1.文件浏览器
为了方便找到所需的JSON文件,故现做了一个简易的...
分类:
移动开发 时间:
2016-10-22 00:47:06
阅读次数:
387
1. 归并排序 归并排序是基于一种被称为“分治”(divide and conquer)的策略。 Sort List Sort a linked list in O(n log n) time using constant space complexity. method 1: merge sort ...
分类:
编程语言 时间:
2016-10-07 07:45:56
阅读次数:
199
今天在写一个JAVA程序的时候出现了异常:java.lang.ArithmeticException: Non-terminating decimal expansion; no exact representable decimal result。发现报错的语句是: ? 1 foo.divide( ...
分类:
编程语言 时间:
2016-09-22 21:25:51
阅读次数:
179
1. 前序遍历 1.1 前序遍历的非递归的方式 利用stack while (!stack.isEmpty()) { pop作为根节点; 根节点加入result list; 把右边节点加入到stack; 把左边节点加入到stack; } 1 public class Solution { 2 pub ...
分类:
其他好文 时间:
2016-09-22 08:46:51
阅读次数:
208
Description Consider a regular triangular area, divide it into four equal triangles of half height and remove the one in the middle. Apply the same op ...
分类:
其他好文 时间:
2016-09-18 23:39:04
阅读次数:
216