码迷,mamicode.com
首页 >  
搜索关键字:merge k sorted lists    ( 11722个结果
Remove Duplicates from Sorted List II
[leetcode]Remove Duplicates from Sorted List II...
分类:其他好文   时间:2014-09-15 11:22:01    阅读次数:192
[Leetcode][JAVA] Merge Two Sorted Lists & Sort List
Merge Two Sorted Lists: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 fi...
分类:编程语言   时间:2014-09-15 01:02:17    阅读次数:269
[leetcode]Add Two Numbers @ Python
原题地址:https://oj.leetcode.com/problems/add-two-numbers/题意:You are given two linked lists representing two non-negative numbers. The digits are stored i...
分类:编程语言   时间:2014-09-14 23:17:17    阅读次数:292
[LeetCode]Search Insert Position
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order. You may assume no duplicates in the array....
分类:其他好文   时间:2014-09-14 22:10:17    阅读次数:146
Median of Two Sorted Arrays[leetcode]
设两个数组分别为A和B,size为as和bs。原问题可以转化为两个排序数组求第k大的问题。 还是两种思路: 比较A[as/2]和B[bs/2],每次抛弃A或者B的一半 代码如下: double findMedianSortedArrays(int A[], int m, int B[], int n) { int total = m + n; if (tot...
分类:其他好文   时间:2014-09-14 12:53:37    阅读次数:170
Android 各国语言包字符串缩写
如果开发一个国际版的安卓应用软件,就需要各种语言包了,在新浪博客看到的,分享一下 语言缩写: http://www.loc.gov/standards/iso639-2/php/code_list.php 国家地区缩写: http://www.iso.org/iso/country_codes/iso_3166_code_lists/country_names_and_code_ele...
分类:移动开发   时间:2014-09-13 22:49:06    阅读次数:429
leetcode Remove Duplicates from Sorted Array II
1 /***************************************************************** 2 created: 2014/09/13 16:16 3 filename: remove-duplicates-from-sorted-arra...
分类:其他好文   时间:2014-09-13 22:43:46    阅读次数:192
Merge Two Sorted Lists
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 /** 2 ...
分类:其他好文   时间:2014-09-13 20:03:15    阅读次数:228
Remove Duplicates from Sorted List
Given a sorted linked list, delete all duplicates such that each element appear onlyonce.For example,Given1->1->2, return1->2.Given1->1->2->3->3, retu...
分类:其他好文   时间:2014-09-13 20:01:15    阅读次数:205
Search Insert Position
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in or...
分类:其他好文   时间:2014-09-13 20:01:05    阅读次数:176
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!