码迷,mamicode.com
首页 >  
搜索关键字:divide two integers    ( 17573个结果
Leetcode Search for a Range
Given a sorted array of integers, find the starting and ending position of a given target value.Your algorithm's runtime complexity must be in the ord...
分类:其他好文   时间:2014-07-05 19:10:48    阅读次数:219
[leetcode] Same Tree
Given two binary trees, write a function to check if they are equal or not.
分类:其他好文   时间:2014-07-03 19:26:46    阅读次数:213
LeetCode:Longest Consecutive Sequence
Given an unsorted array of integers, find the length of the longest consecutive elements sequence.For example,Given[100, 4, 200, 1, 3, 2],The longest ...
分类:其他好文   时间:2014-07-03 19:24:36    阅读次数:142
UVA10107 What is the Median?
What is the Median?  The Problem Median plays an important role in the world of statistics. By definition, it is a value which divides an array into two equal parts. In this problem you are ...
分类:其他好文   时间:2014-07-03 17:43:53    阅读次数:250
UVA10038 Jolly Jumpers
Problem E: Jolly Jumpers A sequence of n > 0 integers is called a jolly jumper if the absolute values of the difference between successive elements take on all the values 1 through n-1. For ins...
分类:其他好文   时间:2014-07-03 17:40:42    阅读次数:257
[LeetCode]Merge Two Sorted Lists
[LeetCode]Merge Two Sorted Lists...
分类:其他好文   时间:2014-07-03 16:37:12    阅读次数:181
[leetcode] Subsets II
Given a collection of integers that might contain duplicates, S, return all possible subsets.
分类:其他好文   时间:2014-07-02 20:19:21    阅读次数:179
LeetCode:Same Tree
Same Tree Given two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal if they are structurally i...
分类:其他好文   时间:2014-07-02 17:56:50    阅读次数:205
[leetcode] Gray Code
The gray code is a binary numeral system where two successive values differ in only one bit.
分类:其他好文   时间:2014-07-02 14:47:43    阅读次数:253
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. 代码如下: * Definition for singly-linked list. * struct L...
分类:其他好文   时间:2014-07-02 07:23:59    阅读次数:159
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!