题目链接又是一个考察对链表基本操作的题目附上代码: 1 /** 2 * Definition for
singly-linked list. 3 * struct ListNode { 4 * int val; 5 * ListNode *next; 6 *
Lis...
分类:
其他好文 时间:
2014-06-02 12:00:52
阅读次数:
226
1、图形化最小安装debian7.5操作系统2、更改debian的apt源配置文件/etc/apt/sources.listroot@duan:~#cat/etc/apt/sources.list
debhttp://ftp.de.debian.org/debianwheezymaincontribnon-free
deb-srchttp://ftp.de.debian.org/debianwheezymaincontribnon-free3、更新apt,并..
分类:
其他好文 时间:
2014-06-02 10:35:03
阅读次数:
379
1,首先需要查看触摸板: 命令:xinput list 结果: ? Virtual core
pointer id=2 [master pointer (3)] ? ? Virtual core XTEST pointer id=4 [slave
poin...
分类:
系统相关 时间:
2014-06-02 10:07:16
阅读次数:
362
Given a linked list, determine if it has a
cycle in it.Follow up:Can you solve it without using extra
space?求链表是否有环的问题,要考虑链表为空的情况,定义一个快指针和一个慢指针,如果快指针和...
分类:
其他好文 时间:
2014-06-02 08:05:16
阅读次数:
255
Given a linked list, return the node where the
cycle begins. If there is no cycle, returnnull.Follow up:Can you solve it
without using extra space?借用博...
分类:
其他好文 时间:
2014-06-02 07:32:33
阅读次数:
291
Sort ListSort a linked list inO(nlogn) time
using constant space
complexity.要求时间复杂度为O(nlogn),那么不能用quickSort了(最坏O(n^2)),所以使用mergeSort.通常写排序算法都是基于数组的,这题...
分类:
其他好文 时间:
2014-06-02 06:29:51
阅读次数:
192
packagecom.mzsx.concurrent.threadpool;
importjava.util.List;
importjava.util.Vector;
publicclassThreadPool{
privatestaticThreadPoolinstance=null;
//空闲的线程队列
privateList<PThread>idleThreads;
//已有的线程总数
privateintthreadCounter;
privateboolea..
分类:
编程语言 时间:
2014-06-02 04:10:21
阅读次数:
332
一:Flask中url的工作方式#encoding=utf-8
fromflaskimportFlask
app=Flask(__name__)
@app.route("/task/")
deftask_list():
return"Listofalltask"
@app.route("/task/<int:task_id>/")
deftask_detail(task_id):
return"Detailoftask#{}.".format(task_id)
@app.ro..
分类:
其他好文 时间:
2014-06-02 03:53:19
阅读次数:
662
服务器端返回的数据如下{"list":[{"id":1,"name":"汉族"},{"id":2,"name":"蒙古族"},{"id":3,"name":"满族"},{"id":4,"name":"朝鲜族"},{"id":5,"name":"赫哲族"},{"id":6,"name":"达斡尔族"},{"id":7,"name":"鄂温克族"},{"id":8,"name":"鄂伦春族"},{"i...
分类:
Web程序 时间:
2014-06-02 02:19:31
阅读次数:
336
与MVC3相比,差别很大: public ActionResult Main() { List
items = new List(); items.Add(new SelectListItem { Text = "Action", Value...
分类:
Web程序 时间:
2014-06-02 01:34:06
阅读次数:
338