Mergeksorted linked lists and return it as one sorted list. Analyze and describe its complexity./** * Definition for singly-linked list. * struct List...
分类:
其他好文 时间:
2015-02-10 15:08:02
阅读次数:
148
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./** * Def...
分类:
其他好文 时间:
2015-02-10 14:55:46
阅读次数:
127
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-02-10 14:49:49
阅读次数:
135
update语句改写成merge into有时会提高运行速度看两个案例1.根据业务将两个嵌套子查询改写成max,速度有3min提升到3s UPDATE OPER_792.LL_SCB_YDKB_20120730 A SET A.DCP = (SELECT B.PROD_OFFER...
分类:
其他好文 时间:
2015-02-10 11:07:19
阅读次数:
213
Merge two sorted linked lists and return it as a new list. The new listshould be made by splicing together the nodes of the first two lists.
HideTags
Linked List
#pragma once
#include
usin...
分类:
其他好文 时间:
2015-02-10 09:19:48
阅读次数:
179
往pgsql里面写数据的时候,不能双引号,开始纠结的不行,用拼字符串的形式,后来发现可以格式化字符串,泪奔data_format.erl-module(data_format).-export([format/2]).format(Format, Args)-> lists:flatten(i...
分类:
其他好文 时间:
2015-02-10 09:11:58
阅读次数:
205
1.火柴棒等式 1 #include 2 #include 3 using namespace std; 4 5 const int match[10]={6,2,5,5,4,5,6,3,7,6}; 6 7 int n; 8 9 int merge(int x){10 int su...
分类:
其他好文 时间:
2015-02-09 21:41:01
阅读次数:
237
暴强的命令行git提交历史记录查询
虽然会一些git命令行的基本操作,但是偶尔不得不借助一些GUI的工具(SourceTree etc.)来查看git提交的history line,这样可以清楚地看到整个project的提交脉络(包括branch,tag,一些merge/rebase记录等)。
偶然间,在github上看到关于git的一条命令:
git log --oneline -...
分类:
其他好文 时间:
2015-02-09 18:32:46
阅读次数:
143
There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)).思路分析:这题容易想到O(m+n)的解法,就是先Merge两个数组,然后返...
分类:
其他好文 时间:
2015-02-09 16:06:53
阅读次数:
106
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]./** * Definiti...
分类:
其他好文 时间:
2015-02-09 15:44:44
阅读次数:
153