码迷,mamicode.com
首页 >  
搜索关键字:integer    ( 14932个结果)
leetcode[168]Excel Sheet Column Title
Given a positive integer, return its corresponding column title as appear in an Excel sheet.For example: 1 -> A 2 -> B 3 -> C ... 26 ->...
分类:其他好文   时间:2015-02-09 00:31:59    阅读次数:227
leetcode[163]Missing Ranges
Given a sorted integer array where the range of elements are [lower,upper] inclusive, return its missing ranges.For example, given[0, 1, 3, 50, 75],lo...
分类:其他好文   时间:2015-02-08 23:10:57    阅读次数:290
hdu 1013 Digital Roots 用一个大水题来纪念我进入杭电前一万名
Problem Description The digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digit then that digit is the digital root. If the resulting value contains two or more digits, those digits are sum...
分类:其他好文   时间:2015-02-08 18:14:30    阅读次数:113
Leetcode_String to Integer (atoi)
主要注意分析几种特殊的输入: 1 不规则的输入,但是有效:"-3924x8fc","+432" 2 无效格式,"++c","++1" 3 数据溢出 其中数据溢出的判断: To deal with overflow, inspect the current number before multiplication. If the current number is greater than...
分类:其他好文   时间:2015-02-08 16:57:54    阅读次数:125
Easy Task
You are given n integers. Your task is very easy. You should find the maximum integer a and the minimum integer b among these n integers. And then you should replace both a and bwith a-b. Your task ...
分类:其他好文   时间:2015-02-08 15:34:12    阅读次数:165
lintcode: k Sum 解题报告
k SumShow ResultMy Submissionshttp://www.lintcode.com/en/problem/k-sum/题目来自九章算法13%AcceptedGiven n distinct positive integers, integer k (k = 0) { ...
分类:其他好文   时间:2015-02-08 09:01:04    阅读次数:197
Lintcode: Heapify && Summary: Heap
Given an integer array, heapify it into a min-heap array.For a heap array A, A[0] is the root of heap, and for each A[i], A[i * 2 + 1] is the left chi...
分类:Windows程序   时间:2015-02-08 07:48:11    阅读次数:346
1059. Prime Factors (25)
时间限制50 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者HE, QinmingGiven any positive integer N, you are supposed to find all of its prime factors, and write ...
分类:其他好文   时间:2015-02-08 00:17:46    阅读次数:186
Sum of Digits is Prime
Sum of Digits is PrimeDaoyi PengAugust 19, 2014For an integer $q\geqslant2$ let $s_q(n)$ denote the $q$-ary sum-of-digits function of a non-negative i...
分类:其他好文   时间:2015-02-08 00:14:19    阅读次数:182
[LeetCode]172.Factorial Trailing Zeroes
Given an integer n, return the number of trailing zeroes in n!.Note: Your solution should be in logarithmic time complexity....
分类:其他好文   时间:2015-02-07 21:45:08    阅读次数:273
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!