码迷,mamicode.com
首页 >  
搜索关键字:sorted list ii    ( 64619个结果
github开源库(三)
41.android-swipelistviewSwipeListView是一个Android List View实现,实现了自定义ListView单元格,可通过滑动来显示扩展面板。开发者可直接登陆Google Play下载安装其Demo应用。42.greenDAOgreenDAO是一个可以帮助An...
分类:其他好文   时间:2014-05-26 22:00:33    阅读次数:379
compile时提示CListCtrl没有声明,为什么这个mfc的类不能直接用?
compile时提示CListCtrl没有声明,为什么这个mfc的类不能直接用?解决办法:#include
分类:其他好文   时间:2014-05-26 16:34:21    阅读次数:213
python模块与包加载机制
模块的搜索路径:When a module namedspamis imported, the interpreter searches for a file namedspam.pyin the current directory, and then in the list of director...
分类:编程语言   时间:2014-05-26 15:09:11    阅读次数:367
Ubuntu 12.04安装最新版本PostgreSQL
https://wiki.postgresql.org/wiki/Apt sudo nano /etc/apt/sources.list.d/pgdg.list粘贴deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg mainctrl+o...
分类:数据库   时间:2014-05-26 14:20:46    阅读次数:437
一个无限级分类
1 /** 2 * 把返回的数据集转换成Tree 3 * @param array $list 要转换的数据集 4 * @param string $pid parent标记字段 5 * @param string $level level标记字段 6 * @return array 7...
分类:其他好文   时间:2014-05-26 14:01:51    阅读次数:225
JAVA集合小结
public class HashMap extends AbstractMap implements Map, Cloneable, Serializablepublic class TreeMap extends AbstractMap implements Sorted...
分类:编程语言   时间:2014-05-26 13:34:23    阅读次数:268
不要对外公开泛型List成员
最近在阅读Framework Design Guidelines,本着现学现用的原则,于是就用FxCop工具对代码进行规范性检查时,发现了很多问题,其中包括命名以及一些设计上的规范。其中,Do not expose generic lists 这条设计规范引起了我的注意。该规范指出“不要在对象模型中...
分类:其他好文   时间:2014-05-26 12:32:20    阅读次数:294
Leetcode: Merge Sorted Array
这种题都采用倒序的方式吧,从大到小添加。要注意的是一些小细节:比如for(int i = m+n-1; i >=0; i--){}, 在for语句里面已经有i--了,循环里面就不需要再写一个i--了 1 public class Solution { 2 public void merge(...
分类:其他好文   时间:2014-05-26 12:14:48    阅读次数:227
Leetcode: Convert Sorted Array to Binary Search Tree
基本上一次过,要注意边界条件的问题:如果在recursion里有两个参数int begin, end, 递归写作recursion(num, mid+1, end), 因为+号的原因,递归中是会出现begin > end 的情况的,所以考虑初始条件的时候应该要考虑充分。 1 /** 2 * Def....
分类:其他好文   时间:2014-05-26 12:12:49    阅读次数:257
Servlet的getContextPath(), getServletPath(), getRequestURI(), getRealPath("/")
假定web application 名称为news,你在浏览器中输入请求路径: http://localhost:8080/news/main/list.jsp 则执行下面向行代码后打印出如下结果:1、 System.out.println(request.getContextPath()); 打印...
分类:其他好文   时间:2014-05-24 08:05:54    阅读次数:264
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!