码迷,mamicode.com
首页 >  
搜索关键字:consecutive numbers    ( 8082个结果
2.2.3 RUNAROUND NUMBERS 循环数
PS:最近工作比较忙,所以把以前在学校做acm的时候写的一些解题报告发出来 http://acm.sdibt.edu.cn/JudgeOnline/problem.php?id=2327 题目大意:(如题) 输入输出:(如题) 解题思路:从开始数后一个数往后枚举,然后判断其是不是循环数,如果是就输出退出。...
分类:其他好文   时间:2014-10-28 09:23:49    阅读次数:231
A Tour of Go Advanced Exercise: Complex cube roots
Let's explore Go's built-in support for complex numbers via thecomplex64andcomplex128types. For cube roots, Newton's method amounts to repeating:Find ...
分类:其他好文   时间:2014-10-28 08:10:08    阅读次数:184
A Tour of Go Exercise: Fibonacci closure
Let's have some fun with functions.Implement afibonaccifunction that returns a function (a closure) that returns successive fibonacci numbers.package ...
分类:其他好文   时间:2014-10-28 00:37:06    阅读次数:129
leetcode 第42题 Multiply Strings
题目:Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are non-n...
分类:其他好文   时间:2014-10-28 00:23:08    阅读次数:321
[LeetCode] 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-10-27 22:58:01    阅读次数:269
Fibonacci Again
Problem DescriptionThere are another kind of Fibonacci numbers: F(0) = 7, F(1) = 11, F(n) = F(n-1) + F(n-2) (n>=2).InputInput consists of a sequence o...
分类:其他好文   时间:2014-10-27 17:30:21    阅读次数:151
Elevator
Problem DescriptionThe highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at wh...
分类:其他好文   时间:2014-10-27 17:29:51    阅读次数:170
Big Number
Problem DescriptionIn many applications very large integers numbers arerequired. Some of these applications are using keys for secure transmission ofd...
分类:其他好文   时间:2014-10-27 17:20:34    阅读次数:135
Triangle LeetCode |My solution
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below. For example, given the following triangle [ [2], [3,4], ...
分类:其他好文   时间:2014-10-27 15:36:28    阅读次数:190
[LeetCode] TwoSum
Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two nu...
分类:其他好文   时间:2014-10-26 21:10:30    阅读次数:170
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!