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-01-05 00:31:33
阅读次数:
188
学习其他语言很少关注数组是的结构是怎么回事,都是直接使用。Python定义了列表、元组、字典三种数据结构,是我们使用python的基础,因此有必要理解它们的含义,我想这个和python一切皆对象的思想有关。python的数据结构更加灵活。1. 列表[lists]序列是Python中最基本的数据结构。...
分类:
编程语言 时间:
2015-01-05 00:18:55
阅读次数:
481
归并排序(Merge)是将两个(或两个以上)有序表合并成一个新的有序表,即把待排序序列分为若干个子序列,每个子序列是有序的。然后再把有序子序列合并为整体有序序列。归并排序是建立在归并操作上的一种有效的排序算法。该算法是采用分治法(Divide and Conquer)的一个非常典型的应用。 将已有序...
分类:
编程语言 时间:
2015-01-04 22:48:45
阅读次数:
264
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-01-04 16:42:46
阅读次数:
150
Crossword AnswersA crossword puzzle consists of a rectangular grid of black and white squares and two lists of definitions (or descriptions).One list ...
分类:
其他好文 时间:
2015-01-04 16:36:09
阅读次数:
143
Good for array and linked list. Stable Sort.Time Complexity: Best, Average, Worst => O(nlogn);Space Complexity: O(n), in-place merge sort makes it ver...
分类:
其他好文 时间:
2015-01-04 13:25:46
阅读次数:
156
https://oj.leetcode.com/problems/merge-two-sorted-lists/http://blog.csdn.net/linhuanmars/article/details/19712593/**
*Definitionforsingly-linkedlist.
*publicclassListNode{
*intval;
*ListNodenext;
*ListNode(intx){
*val=x;
*next=null;
*}
*}
*/
publicclassSolu..
分类:
其他好文 时间:
2015-01-04 11:34:49
阅读次数:
147
排序总结面试经验硅谷某前沿小Startup面试时,问到的一个题目就是写一个快速排序算法。进而面试官问到了各种算法的算法复杂度,进而又问了Merge Sort 与 QuickSort 的优劣。对排序算法的全面理解,体现了计算机学生的功底。现在来讲Merge Sort 与Quick Sort 是最流行的...
分类:
编程语言 时间:
2015-01-02 23:42:54
阅读次数:
1524
https://oj.leetcode.com/problems/merge-k-sorted-lists/http://fisherlei.blogspot.com/2012/12/leetcode-merge-k-sorted-lists.html/**
*Definitionforsingly-linkedlist.
*publicclassListNode{
*intval;
*ListNodenext;
*ListNode(intx){
*val=x;
*next=null;
*}
*}
*/
pu..
分类:
其他好文 时间:
2015-01-02 16:11:43
阅读次数:
152
遇到冲突,首先要编辑冲突文件,可以使用vim或者其他工具,冲突文件变现为: >>>分支名:代表要合并的分支做的修改编辑冲突文件删去多余的标志内容,保存退出即可,然后:gitk -all --> git add . --> git commit -m "chongtu" --> git merge
分类:
其他好文 时间:
2015-01-02 13:25:31
阅读次数:
135