Rotate List Given a list, rotate the list to the right by k places, where k is non-negative. For example: Given 1->2->3->4->5->NULL and k = 2, return ...
分类:
其他好文 时间:
2016-05-20 13:09:26
阅读次数:
132
Usually hidden in the middle of the list of the classes derived from the types defined in an XML schema there will be one class called ObjectFactory. ...
分类:
其他好文 时间:
2016-05-20 11:50:28
阅读次数:
182
emacs 配置文件[2016/05/20];; 把 .emacs.d 目錄加入到 load-path ;; 這樣的話本來需要放到 /usr/share/emacs/site-lisp/ 的東西 ;; 就只需要放到 .emacs.d 裏面 (add-to-list 'load-path "~/.em... ...
分类:
系统相关 时间:
2016-05-20 11:21:06
阅读次数:
212
Android之Adapter用法总结 1.概念 Adapter是连接后端数据和前端显示的适配器接口,是数据和UI(View)之间一个重要的纽带。在常见的View(List View,Grid View)等地方都需要用到Adapter。如下图直观的表达了Data、Adapter、View三者的关系: ...
分类:
移动开发 时间:
2016-05-20 08:35:29
阅读次数:
402
获取File对象,new出来,构造参数:String目录名 调用File对象的list()方法,获取String[]数组文件名称 循环数组,列出所有文件包含隐藏文件 递归列出所有的数据 定义一个静态方法showDir(),传递进参数:FIle对象 调用File对象的listFiles()方法,得到F ...
分类:
编程语言 时间:
2016-05-20 00:49:58
阅读次数:
199
图算是数据结构中比较难的问题,但是在实际中解决的问题也更多。 其中,在图结构中涉及的问题主要有: 图的存储: 邻接表(Adjacency list):为每个节点建立一个链表存放与之连接的点. 邻接矩阵(Adjacency matrix):n*n的矩阵,有边的是1,无边的是0. 最短路径: Dijks ...
分类:
其他好文 时间:
2016-05-20 00:49:15
阅读次数:
789
一、类型 1. 不可变类型 string, int, tuple 2. 可变类型 list, dict >>> a = "test" >>> a[0] 't' >>> a[0]=e Traceback (most recent call last): File "<stdin>", line 1, ...
分类:
编程语言 时间:
2016-05-20 00:48:54
阅读次数:
229
Remove all elements from a linked list of integers that have value val. ExampleGiven: 1 --> 2 --> 6 --> 3 --> 4 --> 5 --> 6, val = 6Return: 1 --> 2 -- ...
分类:
其他好文 时间:
2016-05-19 23:14:52
阅读次数:
166
一.ArrayAdapter 1.layout:只能有一个<TextView>,不能有布局。 2.数据源:String[ ]或List<String>。 二.SimpleAdapter 1.数据源:List<Map<String,Object>>。 2.layout:可以用布局,包含多个视图。 3. ...
分类:
其他好文 时间:
2016-05-19 23:05:22
阅读次数:
162