码迷,mamicode.com
首页 >  
搜索关键字:列表(list)    ( 98808个结果
实现ExpandableListAdapter三种常用方式
1、扩展BaseExpandableListAdapter实现ExpandableListAdapter2、使用SimpleExpandableListAdapter将两个List集合包装成ExpandableListAdapter3、使用SimpleCursorTreeAdapter将Cursor...
分类:其他好文   时间:2014-05-05 23:43:51    阅读次数:280
文件操作1创建文件
1.[root@rusky ]# vi list #如果testfile不存在,则vi会自动创建一个名为testfile的文件,并在Vi打开该文件等待用户输入内容。2.[root@rusky ]# ls -l >listfile #利用重定向,将ls -l 的执行结果输出到新文件listfile.....
分类:其他好文   时间:2014-05-05 23:21:35    阅读次数:381
PHP单一入口应用程序概述
什么是单一入口应用程序?在解释什么是单一入口应用程序之前,我们先来看看传统的 web 应用程序。news.php 显示新闻列表news_edit.php 显示新闻编辑页面这两个页面不但分别实现了两个功能,还成为了应用程序的两个入口。那什么是入口啊?打个比方,大家上 WC,都是男生进一个门,女生进一个...
分类:Web程序   时间:2014-05-05 22:53:00    阅读次数:401
Leetcode: Remove Duplicates from Sorted List
遇到的问题:input{1,1,1}, output{1,1}, expected{1}, 原因在于若temp.val==temp.next.val, 则需要temp.next=temp.next.next, 这时候就不要temp=temp.next了注意停止条件不光是temp!=null,还应该有...
分类:其他好文   时间:2014-05-05 22:47:08    阅读次数:454
Reverse Nodes in k-Group
Link:http://oj.leetcode.com/problems/reverse-nodes-in-k-group/Given a linked list, reverse the nodes of a linked listkat a time and return its modifie...
分类:其他好文   时间:2014-05-05 22:46:42    阅读次数:456
Reverse Linked List II
Link:http://oj.leetcode.com/problems/reverse-linked-list-ii/Reverse a linked list from positionmton. Do it in-place and in one-pass.For example:Given1...
分类:其他好文   时间:2014-05-05 22:46:11    阅读次数:411
Swap Nodes in Pairs
Link:http://oj.leetcode.com/problems/swap-nodes-in-pairs/Given a linked list, swap every two adjacent nodes and return its head.For example,Given1->2-...
分类:其他好文   时间:2014-05-05 22:45:37    阅读次数:331
python 列表推导式----轻量级循环
列表推导式(list comprehension)是利用其他列表创建新列表(类似于数学术语中的集合推导式)的一种方法。它的工作方式类似于for循环,也很简单:In [39]: [x*x for x in range(10)]Out[39]: [0, 1, 4, 9, 16, 25, 36, 49, ...
分类:编程语言   时间:2014-05-05 22:21:48    阅读次数:422
微信公众平台自定义菜单及高级接口PHP SDK
本文介绍介绍微信公众平台自定义菜单及高级接口的PHP SDK及使用方法。主要包括初始化对象、查看Access Token、创建二维码、获取关注者列表、获取用户信息、创建菜单、用户分组、上传下载多媒体、发送客服消息等功能。
分类:微信   时间:2014-05-05 21:57:15    阅读次数:811
codechef Turbo Sort 题解
Input t – the number of numbers in list, then t lines follow [t  Each line contains one integer: N [0 N  Output Output given numbers in non decreasing order. Example Input: 5 5 3 ...
分类:其他好文   时间:2014-05-04 00:04:09    阅读次数:376
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!