码迷,mamicode.com
首页 >  
搜索关键字:merge lists    ( 6727个结果
Redis初探
Redis Redis是一个key-value存储系统。和Memcached类似,但是解决了断电后数据完全丢失的情况,而且她支持更多无化的value类型,除了和string外,还支持lists(链表)、sets(集合)和zsets(有序集合)几种数据类型。这些数据类型都支持push/pop、add/...
分类:其他好文   时间:2015-05-07 23:33:29    阅读次数:115
leetcode_2_题——Add Two Numbers(链表)
Add Two NumbersTotal Accepted:58510Total Submissions:268082My SubmissionsQuestionSolutionYou are given two linked lists representing two non-negative ...
分类:其他好文   时间:2015-05-07 21:59:52    阅读次数:96
MySQL存储引擎总结
MySQL存储引擎总结作者:果冻想 字体:[增加 减小] 类型:转载这篇文章主要介绍了MySQL存储引擎总结,本文讲解了什么是存储引擎、MyISAM、InnoDB、MEMORY、MERGE等内容,需要的朋友可以参考下前言在数据库中存的就是一张张有着千丝万缕关系的表,所以表设计的好坏,将直接影响着整个...
分类:数据库   时间:2015-05-07 16:24:50    阅读次数:138
leetcode-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 i...
分类:其他好文   时间:2015-05-07 12:36:34    阅读次数:119
[Leetcode][021] Merge Two Sorted Lists (Java)
题目在这里:https://leetcode.com/problems/merge-two-sorted-lists/【标签】Linked List【题目分析】这个题目就是merge sort在 Linked List中的变形。不多说,直接上代码了 1 public ListNode merge.....
分类:编程语言   时间:2015-05-07 07:33:44    阅读次数:181
STL 堆的使用
本来是要写leetcode上的merge k sorted lists那道题目,这个题目我还是很熟悉的,毕竟是看过算法导论的人,但是写的过程中对堆的维护代码还是挺多的,所以我想到了STL中的堆。下面就来学习一下这个STL。先介绍一个非常好的学习C++的网站http://www.cplusplus.c...
分类:其他好文   时间:2015-05-06 17:20:48    阅读次数:92
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-05-06 14:44:07    阅读次数:105
LeetCode23 Merge k Sorted Lists 把K个有序链表连接成一个
题目: Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity. 翻译: 把K个有序的链表合成一个,返回。 思路: 这道题和昨天的Merge 2 Lists有些类似。但是k不确定,如果用每个都去遍历的话,肯定是不会通过的。 So、可以想到的是归...
分类:其他好文   时间:2015-05-06 13:22:15    阅读次数:153
Median of Two Sorted Arrays——解题笔记
【题目】 There are two sorted arrays nums1 and nums2 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)).     解法1:     直...
分类:其他好文   时间:2015-05-06 10:59:54    阅读次数:102
57-Insert Interval
【题目】Given a set ofnon-overlappingintervals, insert a new interval into the intervals (merge if necessary).You may assume that the intervals were initi...
分类:其他好文   时间:2015-05-06 09:11:39    阅读次数:211
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!