码迷,mamicode.com
首页 >  
搜索关键字:merge lists    ( 6727个结果
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. class Solution { public: ListNode *mergeTwoLists(Li...
分类:其他好文   时间:2014-10-15 15:48:31    阅读次数:127
卸载重安firefox
sudo apt-get –purge remove firefox ,提示Reading package lists… DoneBuilding dependency treeReading state information… DoneThe following packages will be...
分类:其他好文   时间:2014-10-15 13:01:08    阅读次数:161
2299 Ultra-QuickSort(归并排序)
幷归排序第一次做,翻书看了一下并归的思路看了一下别人的博客。 http://poj.org/problem?id=2299 #include #include #define MAX 500001 int n,a[MAX], t[MAX]; long long int sum; //幷归 void Merge(int l, int m, int r) { int p=0;...
分类:编程语言   时间:2014-10-14 23:00:09    阅读次数:197
[LeetCode]Merge Intervals
Given a collection of intervals, merge all overlapping intervals. For example, Given [1,3],[2,6],[8,10],[15,18], return [1,6],[8,10],[15,18]. 参照insert intervals /** * Definition for an interva...
分类:其他好文   时间:2014-10-14 22:48:09    阅读次数:125
python快速排序
import random def rand(n): for i in range(n): yield random.randint(0,1000) #创建一个随机数列表 def createList(n): lists=[] for i in rand(n): lists.append(i) return lists #挖坑法快速排...
分类:编程语言   时间:2014-10-14 15:13:48    阅读次数:211
Combination Sum
递归:class Solution: # @param candidates, a list of integers # @param target, integer # @return a list of lists of integers def combinationS...
分类:其他好文   时间:2014-10-14 14:38:48    阅读次数:148
JOS 不能进入lab2 问题的解决
JOS 不能进入lab2 问题的解决                  这个鸟问题折腾了我好久! lab2是需要 kern/pmap.c的!但是这里没有 首先要git checkout -b lab2 origin/lab2 (只要做好上面这一步,就可以确保能够调整好文件了,坑啊!到现在都6个小时不止了!) 接着git fetch 然后git merge...
分类:其他好文   时间:2014-10-14 02:51:08    阅读次数:181
批量 merge
for branch_name in `git branch | grep b_`do git rm -f README.md git commit -m'rm README.md' git merge $branch_name git rm -f README.md ...
分类:其他好文   时间:2014-10-14 00:37:37    阅读次数:239
HDoj-1879-畅通工程-并查集
继续畅通工程 Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 14309    Accepted Submission(s): 6228 Problem Description 省政府“畅通工程”的目标是使全省任何两个村庄...
分类:其他好文   时间:2014-10-13 19:12:57    阅读次数:230
Merge Two Sorted Lists
1 /** 2 * Definition for singly-linked list. 3 * public class ListNode { 4 * int val; 5 * ListNode next; 6 * ListNode(int x) { 7 * ...
分类:其他好文   时间:2014-10-13 13:30:09    阅读次数:118
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!