码迷,mamicode.com
首页 >  
搜索关键字:lists    ( 2473个结果
1032. Sharing (25)
To store English words, one method is to use linked lists and store a word letter by letter. To save some space, we may let the words share the same sublist if they share the same suffix. For example,...
分类:其他好文   时间:2015-03-03 18:41:39    阅读次数:140
[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. 水题,注意 du...
分类:其他好文   时间:2015-03-03 18:25:00    阅读次数:112
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 ...
分类:其他好文   时间:2015-03-03 18:15:30    阅读次数:130
leetcode--2
#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...
分类:其他好文   时间:2015-03-03 13:46:26    阅读次数:154
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: a1...
分类:其他好文   时间:2015-03-02 22:22:37    阅读次数:198
Redis 数据类型分析 字符串 哈希 列表 集合 有序集合 优缺点 分析 注意事项 存储结构
Redis 数据类型分析 字符串 哈希 列表 集合 有序集合 优缺点 分析 注意事项 存储结构 字符串(Strings) 哈希(Hashes) 列表(Lists) 集合(Sets) 有序集合(Sorted sets) 512M 4294967295 4294967295 42949...
分类:其他好文   时间:2015-03-02 17:06:28    阅读次数:174
记录几种有关libsvm格式数据的list和dict用法
1 # list元素求和2 sum = reduce(lambda x,y: x+y, mylist)1 # 比较两个 lists 的元素是否完全一致2 if all(x==y for x, y in zip(X, Y))3 do something1 # 按照 key 排列字典的元素,以...
分类:其他好文   时间:2015-03-01 14:24:22    阅读次数:173
A1039. Course List for Student (25)
Zhejiang University has 40000 students and provides 2500 courses. Now given the student name lists of all the courses, you are supposed to output the ...
分类:其他好文   时间:2015-03-01 01:31:14    阅读次数:180
LeetCode-Sort List,链表排序(插入和归并),时间复杂度O(n^2) and O(nlgn)
题目: 1、Sort a linked list using insertion sort 2、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. 3、Sor...
分类:编程语言   时间:2015-02-28 21:46:36    阅读次数:288
LeetCode2——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 as a li...
分类:其他好文   时间:2015-02-27 11:54:33    阅读次数:125
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!