算法分析基本思想维基百科中记录:快速排序使用分治法(Divide and conquer)策略来把一个序列(list)分为两个子序列(sub-lists)。步骤为:从数列中挑出一个元素,称为"基准"(pivot),重新排序数列,所有元素比基准值小的摆放在基准前面,所有元素比基准值大的摆在基准的后面(...
分类:
编程语言 时间:
2015-01-30 17:23:16
阅读次数:
233
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 link...
分类:
其他好文 时间:
2015-01-30 15:55:05
阅读次数:
196
string 'content' (length=7) 'c' => string 'index' (length=5) 'a' => string 'lists' (length=5) ...
分类:
Web程序 时间:
2015-01-30 15:43:56
阅读次数:
130
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 l...
分类:
其他好文 时间:
2015-01-30 10:55:06
阅读次数:
293
题目:
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.
我的解法:
(1)算法思想:
先根据两个链表l1,l2头结点值的大小设置要返回链表的头结点h...
分类:
其他好文 时间:
2015-01-29 17:44:28
阅读次数:
116
The problem:Mergeksorted linked lists and return it as one sorted list. Analyze and describe its complexity.My analysis:The is problem could be elegan...
分类:
其他好文 时间:
2015-01-29 07:06:08
阅读次数:
207
BootStrap学习笔记一:学习工具:BootStrap中文文档:http://v3.bootcss.com/css/#type-lists表格BootStrap 学习第三步 编号 姓名 年龄 ...
分类:
其他好文 时间:
2015-01-28 12:45:59
阅读次数:
176
题目链接: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 a...
分类:
其他好文 时间:
2015-01-27 23:36:05
阅读次数:
373
# -*- coding: utf8 -*-'''__author__ = 'dabay.wang@gmail.com'23: Merge k Sorted Listshttps://oj.leetcode.com/problems/merge-k-sorted-lists/Merge k sort...
分类:
编程语言 时间:
2015-01-27 23:08:46
阅读次数:
244
描述:
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 ...
分类:
其他好文 时间:
2015-01-27 20:23:35
阅读次数:
154