码迷,mamicode.com
首页 >  
搜索关键字:median of two sor    ( 12209个结果
【leetcode】Swap Nodes in Pairs
题目: Given a linked list, swap every two adjacent nodes and return its head. For example, Given 1->2->3->4, you should return the list as 2->1->4->3. Your algorithm should use only cons...
分类:其他好文   时间:2014-08-29 13:13:37    阅读次数:169
【Java】Java Platform
The Java platform has two components: The Java Virtual Machine The Java Application Programming Interface(API)The API are known as packages.
分类:编程语言   时间:2014-08-29 12:57:47    阅读次数:201
Edit Distance
Given two wordsword1andword2, find the minimum number of steps required to convertword1toword2. (each operation is counted as 1 step.)You have the fol...
分类:其他好文   时间:2014-08-29 10:45:37    阅读次数:199
[LeetCode] 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.public cl...
分类:其他好文   时间:2014-08-29 01:16:36    阅读次数:267
LeetCode: Same Tree
LeetCode: Same TreeGiven two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are struct...
分类:其他好文   时间:2014-08-28 22:40:46    阅读次数:266
UVA - 1378 A Funny Stone Game (SG定理)
Description The funny stone game is coming. There are n piles of stones, numbered with 0, 1, 2,..., n - 1. Two persons pick stones in turn. In every turn, each person selects three piles of stones...
分类:其他好文   时间:2014-08-28 16:15:29    阅读次数:523
【LeetCode】- Merge Sorted Array (合并有序数组)
[ 问题: ] Given two sorted integer arrays A and B, merge B into A as one sorted array. 直译:给定两个排好序的整形数组,将数组B合并到数组A,形成一个新的有序数组。...
分类:其他好文   时间:2014-08-28 14:53:19    阅读次数:214
Leetcode:Edit Distance 字符串编辑距离
原题戳我Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.)You ha...
分类:其他好文   时间:2014-08-28 13:04:59    阅读次数:162
codechef Sums in a Triangle题解
Let's consider a triangle of numbers in which a number appears in the first line, two numbers appear in the second line, three in the third line, etc....
分类:其他好文   时间:2014-08-28 13:03:29    阅读次数:218
UVA - 12293 Box Game (规律)
Description   Box Game  There are two identical boxes. One of them contains n balls, while the other box contains one ball. Alice and Bob invented a game with the boxes and bal...
分类:其他好文   时间:2014-08-28 09:41:09    阅读次数:189
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!