码迷,mamicode.com
首页 >  
搜索关键字:number    ( 26994个结果
[LeetCode] Combination Sum 组合之和
Given a set of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Thesamerepeated num...
分类:其他好文   时间:2015-04-12 13:13:58    阅读次数:122
杭电5123 who is the best?
Problem Description There are N people want to choose the best person. Each person select the best person ai, .John wants to know that who received the most number of votes. Input The first line co...
分类:其他好文   时间:2015-04-12 12:10:06    阅读次数:120
leetcode-16 3Sum Closest
问题描述: Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. You may assume that each input would ...
分类:其他好文   时间:2015-04-12 12:08:13    阅读次数:190
Excel Sheet Column Number--LeetCode
Given a positive integer, return its corresponding column title as appear in an Excel sheet. For example: 1 -> A 2 -> B 3 -> C ... 26 -> Z 27 -> AA 28 -> AB 思路:进制之间...
分类:其他好文   时间:2015-04-12 12:07:16    阅读次数:101
开平方与魔数0x5F3759DF:Quake III 开源代码
float Q_rsqrt( float number ){ long i; float x2, y; const float threehalfs = 1.5F; x2 = number * 0.5F; y = number; i = * ( long * ) &y; // evil ...
分类:其他好文   时间:2015-04-12 11:51:56    阅读次数:239
Factorial Trailing Zeroes--LeetCode
Given an integer n, return the number of trailing zeroes in n!. Note: Your solution should be in logarithmic time complexity.   思路:对于一个数的阶乘后面有多少个0,一个数 n 的阶乘末尾有多少个 0 取决于从 1 到 n 的各个数的因子中 2 和 5 的个数,...
分类:其他好文   时间:2015-04-12 10:41:36    阅读次数:118
Excel Sheet Column Number--LeetCode
Given a column title as appear in an Excel sheet, return its corresponding column number. For example: A -> 1 B -> 2 C -> 3 ... Z -> 26 AA -> 27 AB -> 28 Credits: 思路:相...
分类:其他好文   时间:2015-04-12 10:40:00    阅读次数:104
leetcode-16 3Sum Closest
?? ?? 问题描述: Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. You may assume that each in...
分类:其他好文   时间:2015-04-12 09:23:09    阅读次数:119
[LeetCode]Number of Islands
Given a 2d grid map of '1's (land) and '0's (water), count the number of islands. An island is surrounded by water and is formed by connecting adjacent lands horizontally or vertically. You may assu...
分类:其他好文   时间:2015-04-12 09:22:41    阅读次数:175
UVA - 11464 - Even Parity
11464 Even Parity We have a grid of size N × N. Each cell of the grid initially contains a zero(0) or a one(1). The parity of a cell is the number of 1s surrounding that cell. A cell is surrounded b...
分类:其他好文   时间:2015-04-12 09:15:39    阅读次数:143
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!