码迷,mamicode.com
首页 >  
搜索关键字:lists    ( 2473个结果
leetcode - Merge Two Sorted Lists
题目:Merge Two Sorted ListsMerge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the ...
分类:其他好文   时间:2014-07-07 14:06:19    阅读次数:221
ApiDemos-->Views-lists-slow adapter学习
今天来按照apidemos提供的方法来实现slow loading的效果. Main.java import android.app.ListActivity; import android.content.Context; import android.os.Bundle; import android.view.LayoutInflater; import android.view...
分类:Windows程序   时间:2014-07-06 10:54:49    阅读次数:406
apidemos ->views/lists/Activate items 学习
看apidemos的 activate items 很简单,就是继承ListActivity, 然后给使用了 api 11中一个系统样式的textView. 然而在 API level 11 之前运行会报错.如果在11之前实现 Activateitems给出的效果,那必然要给textView 的background属性设置一个press等状态的xml来,drawable其选中的背景....
分类:Windows程序   时间:2014-07-06 09:48:15    阅读次数:410
Case study: word play
For the exercises in this chapter we need a list of English words. There are lots of word lists available on the Web, but the most suitable for our pu...
分类:其他好文   时间:2014-07-05 22:45:55    阅读次数:545
[LeetCode]Merge Two Sorted Lists
[LeetCode]Merge Two Sorted Lists...
分类:其他好文   时间:2014-07-03 16:37:12    阅读次数:181
函数重载
1、函数重载overloading:C++允许在同一范围中声明几个功能类似的同名函数,但是这些同名函数的形式参数parameter lists(指参数的个数、类型或者顺序)必须不同;int max(int a, int b);double max(double a, double b);int ma...
分类:其他好文   时间:2014-07-03 07:19:30    阅读次数:244
Leetcode Merge k Sorted Lists
Mergeksorted linked lists and return it as one sorted list. Analyze and describe its complexity.合并k个排序列表解题思路是:取出 k个元素进行堆排序,每次取出最小的元素,插入链表中即可注意本题利用了c++...
分类:其他好文   时间:2014-07-02 20:16:54    阅读次数:273
Leetcode:Merge Two Sorted Lists 合并两个有序单链表
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. 代码如下: * Definition for singly-linked list. * struct L...
分类:其他好文   时间:2014-07-02 07:23:59    阅读次数:159
ubuntu软件中心崩溃
网上找了下别人的解决方法(本人测试成功解决此问题): 提示说是lists出错 我的正是这种情况 使用如下命令可以修复: 1、删除lists  sudo rm /var/lib/apt/lists/* -vf 2、重新下载 sudo apt-get update...
分类:其他好文   时间:2014-07-01 10:49:41    阅读次数:187
[Leetcode]Add Two Numbers
题目 You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it a...
分类:其他好文   时间:2014-07-01 09:11:07    阅读次数:206
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!