码迷,mamicode.com
首页 >  
搜索关键字:smallest    ( 560个结果
YT14-HDU-求多组数的最小公倍数
Problem Description The least common multiple (LCM) of a set of positive integers is the smallest positive integer which is divisible by all the numbers in the set. For example, the LCM of 5, 7 and...
分类:其他好文   时间:2015-01-26 17:21:09    阅读次数:137
UVA How Big Is It? (DFS+回溯)
How Big Is It?  Ian's going to California, and he has to pack his things, including his collection of circles. Given a set of circles, your program must find the smallest rectangular box in...
分类:其他好文   时间:2015-01-26 17:05:21    阅读次数:265
poj1094 拓扑排序
http://poj.org/problem?id=1094 Description An ascending sorted sequence of distinct values is one in which some form of a less-than operator is used to order the elements from smallest to larges...
分类:编程语言   时间:2015-01-25 19:39:31    阅读次数:185
CDZSC_2015寒假新人(2)——数学 - A
DescriptionThe least common multiple (LCM) of a set of positive integers is the smallest positive integer which is divisible by all the numbers in the...
分类:其他好文   时间:2015-01-24 21:20:31    阅读次数:219
计算机程序的构造和解释 1.21 寻找素数因子
寻找素数因子要求用书中的smallest-divisor过程找出199, 1999, 19999的最小因子。Scheme Code:主要流程:定义寻找素数的过程如果2的平方即4,大于测试值,那么它肯定是素数如果n能和2整除,那么不是素数,最小因子是2如果不是,回到过程find-div,再试试能不能与...
分类:其他好文   时间:2015-01-23 19:56:37    阅读次数:214
SICP 计算机程序的构造和解释 1.21 寻找因子 Scheme、C++实现
寻找素数因子要求用书中的smallest-divisor过程找出199, 1999, 19999的最小因子。Scheme Code:主要流程:定义寻找素数的过程如果2的平方即4,大于测试值,那么它肯定是素数如果n能和2整除,那么不是素数,最小因子是2如果不是,回到过程find-div,再试试能不能与...
分类:编程语言   时间:2015-01-23 17:50:51    阅读次数:228
[LeetCode] Find the k-th Smallest Element in the Union of Two Sorted Arrays
Question:GiventwosortedarraysA,Bofsizemandnrespectively.Findthek-thsmallestelementintheunionofAandB.Youcanassumethattherearenoduplicateelements.http://leetcode.com/2011/01/find-k-th-smallest-element-in-union-of.htmlAspecialcase:Medianoftwosortedarrayshttps:..
分类:其他好文   时间:2015-01-19 11:05:14    阅读次数:214
LeetCode--Binary Search Tree Iterator
Implement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST. Calling next() will return the next smallest number in the BST. Note: next()...
分类:其他好文   时间:2015-01-16 16:50:57    阅读次数:152
[C++]LeetCode: 93 Binary Search Tree Iterator (经典题,非递归的中序遍历)
题目: Implement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST. Calling next() will return the next smallest number in the BST. Note:...
分类:编程语言   时间:2015-01-14 18:01:28    阅读次数:182
Java-Binary Search Tree Iterator
Implement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST. Calling next() will return the next smallest number in the BST. Note: next() a...
分类:编程语言   时间:2015-01-13 14:25:39    阅读次数:240
560条   上一页 1 ... 49 50 51 52 53 ... 56 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!