码迷,mamicode.com
首页 >  
搜索关键字:number    ( 26994个结果
【LeetCode】Combination Sum
Combination SumGiven a set of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Thes...
分类:其他好文   时间:2014-09-09 10:54:08    阅读次数:190
69. Letter Combinations of a Phone Number
思路: hash && dfs.
分类:其他好文   时间:2014-09-09 10:45:48    阅读次数:235
65. Reverse Integer && Palindrome Number
思路: 注意符号,溢出。 思路: 注意负数和溢出情况都是 false. 其余情况,就是反转再判断,参考上题.
分类:其他好文   时间:2014-09-09 10:40:08    阅读次数:179
Codeforces 464C Substitutes in Number 同余定理+模拟
题目链接:点击打开链接 题意: 给定一串数字 下面有n个操作 每行格式形如 d->t d为一位数字,t为任意长度的数字。 t的长度和不超过100000 问:最后的结果%1e9+7 思路: 首先我们可以得到一个结论: 同余定理使用后不能再修改数字。 那么为了让同余定理能够使用,我们倒序处理每个数字,这样就能保证能够使用同余定理。 记录每个数字实际代表的数字和实际对...
分类:其他好文   时间:2014-09-08 10:52:16    阅读次数:251
Web Pages - Efficient Paging Without The WebGrid
Web Pages - Efficient Paging Without The WebGrid If you want to display your data over a number of pages using WebMatrix Beta1, you have two options. ...
分类:Web程序   时间:2014-09-07 23:44:45    阅读次数:397
Two Sum
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-09-07 23:40:25    阅读次数:202
ZOJ - 3816 Generalized Palindromic Number
Description A number that will be the same when it is written forwards or backwards is known as a palindromic number. For example, 1234321 is a palindromic number. We call a number generalized p...
分类:其他好文   时间:2014-09-07 22:31:15    阅读次数:241
ZigZag Conversion
The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font ...
分类:其他好文   时间:2014-09-07 21:07:35    阅读次数:247
zoj 3816 Generalized Palindromic Number (二分+贪心)
题目连接 :http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=5348牡丹江网络赛的题,比赛的时候想到做法的,但是一直没调出来,赛后也调了些时间,最近代码能力堪忧啊~有好多做法, 我的做法是二分下界low,即判断在low到n-1之间...
分类:其他好文   时间:2014-09-07 21:07:25    阅读次数:270
NYIST 760 See LCS again
See LCS again时间限制:1000 ms | 内存限制:65535 KB难度:3描述There are A, B two sequences, the number of elements in the sequence is n、m;Each element in the seque.....
分类:其他好文   时间:2014-09-07 21:01:55    阅读次数:286
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!