码迷,mamicode.com
首页 >  
搜索关键字:lists    ( 2473个结果
E:Encountered a section with no Package: header, E:Problem with MergeList /var/lib/apt/lists/******
最近在Ubuntu上安装mysql-server时用命令apt-get install mysql-server出现报错提示:E:Encountered a section with no Package: header, E:Problem withMergeList /var/lib/apt/l...
分类:其他好文   时间:2014-12-26 09:33:14    阅读次数:170
Merge Two Sorted Lists leetcode
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. 题目意思为合并两个链表,不能用额外的空间(新链由两个链拼接而成) 思路: 比较简单,直接定义两个指针,分别...
分类:其他好文   时间:2014-12-25 22:09:16    阅读次数:186
OpenWrt 官方邮件列表订阅
https://lists.openwrt.org/cgi-bin/mailman/listinfo 选择合适的订阅。 lists.openwrt.org Mailing Lists Welcome! Below is a listing of all the public mailing lists on lists.openwrt...
分类:其他好文   时间:2014-12-25 16:33:59    阅读次数:197
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. ...
分类:其他好文   时间:2014-12-24 21:32:44    阅读次数:236
Add Two Numbers
Problem StatementYou are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes ...
分类:其他好文   时间:2014-12-24 16:08:33    阅读次数:137
【LeetCode】Add Two Numbers
Add Two NumbersYou are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes co...
分类:其他好文   时间:2014-12-23 13:40:36    阅读次数:183
Leetcode: Intersection of Two Linked Lists
Write a program to find the node at which the intersection of two singly linked lists begins.For example, the following two linked lists:A: a...
分类:其他好文   时间:2014-12-23 06:40:46    阅读次数:128
erlang的lists笔记
一般循环用在遍历列表的时候,erlang有lists模块直接支持遍历,不需要自己写尾递归遍历listlists:foreach用来遍历列表,不保存结果,最后一次返回oklists:map遍历列表,不过,每次函数 Fun 执行的结果将保留,并组成一个列表返回。lists:filter遍历列表,根据返回...
分类:其他好文   时间:2014-12-22 19:15:02    阅读次数:361
快速排序
基本思想        快速排序的基本思想是基本思想是,通过一趟排序将待排记录分隔成独立的两部分,其中一部分记录的关键字均比另一部分的关键字小,则可分别对这两部分记录继续进行排序,以达到整个序列有序。快速排序使用分治法来把一个串(list)分为两个子串行(sub-lists)。 注意分组的时候先从右边开始比较,因为之前记录的基数是开始的位置,所以循环之前开始部分是空的,因此从右边开始。分组时需...
分类:编程语言   时间:2014-12-20 18:19:21    阅读次数:128
leetcode[160] Intersection of Two Linked Lists
那几题要15刀才能测试的就先放着了。先吧可以在线测试的刷了。这题是找到零个链表的相交的那个节点。如果没有相交,那就返回NULL。思路一:如果有相交,那么他们相交点之后的节点肯定都是共有的,然后两个链表有长有短的话,就先把长的读到和短的一样长,然后两个人在同时走,走到第一个相同的点就是答案了。如果相同...
分类:其他好文   时间:2014-12-20 11:38:30    阅读次数:174
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!