码迷,mamicode.com
首页 >  
搜索关键字:merge two sorted lis    ( 37279个结果
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 ...
分类:其他好文   时间:2014-05-16 23:18:16    阅读次数:360
不用js实现幻灯片功能
one two three four five six seven eight
分类:Web程序   时间:2014-05-16 20:49:04    阅读次数:340
【LeetCode】Container With Most Water
Givennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai).nvertical lines are drawn such that the two endpoints of ...
分类:其他好文   时间:2014-05-16 19:42:17    阅读次数:286
【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].public class S...
分类:其他好文   时间:2014-05-16 08:44:29    阅读次数:276
insert ,update 以及merge 的使用
insert ,update 以及merge 的使用例子
分类:其他好文   时间:2014-05-16 05:03:57    阅读次数:307
Leetcode 线性表 Remove Duplicates from Sorted Array
题意:从一个已排序的数组中移除掉重复的元素 思路:用下标i扫描旧数组,用下标j来保存新数组的尾部 如果旧数组的当前元素与新数组的最后一个元素相同,则继续扫描旧数组 如果不同,新数组的下标前移一们,将旧数组的当前元素赋给新数组,继续扫描旧数组 相关题目: Remove Element Remove Duplicates from Sorted List Remove Duplicates from Sorted List II...
分类:其他好文   时间:2014-05-15 06:57:53    阅读次数:249
Leetcode 线性表 Remove Duplicates from Sorted List
题意:去掉已排序的链表里重复的元素 思路: 1.遍历链表,用一个变量保存当前链表节点的值 2.如果当前链表节点值与前面的一样,则删除当前链表节点 3.否则用当前节点值更新该变量 复杂度:时间O(n), 空间O(1)...
分类:其他好文   时间:2014-05-15 06:46:24    阅读次数:218
English words
perseverance n坚持不懈 耐性carefree adj 无忧无虑的 不负责任的interaction n互动 交流confidence n信心 密码 adj 诈骗的nomination n提名任命
分类:其他好文   时间:2014-05-14 08:49:14    阅读次数:223
ZOJ3672:Gao The Sequence
You are given a sequence of integers, A1,A2,...,An. And you are allowed a manipulation on the sequence to transform the origin sequence into another sequence B1,B2,...,Bn(Maybe the two sequences are s...
分类:其他好文   时间:2014-05-13 13:45:10    阅读次数:327
[ACM] 1016 Prime Ring Problem (深度优先搜索)
Prime Ring Problem Problem Description A ring is compose of n circles as shown in diagram. Put natural number 1, 2, ..., n into each circle separately, and the sum of numbers in two adjacent...
分类:其他好文   时间:2014-05-13 11:54:17    阅读次数:444
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!