码迷,mamicode.com
首页 >  
搜索关键字:digit recongnizer    ( 1477个结果
Letter Combinations of a Phone Number
Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telephon...
分类:其他好文   时间:2014-08-06 14:30:21    阅读次数:213
POJ 3187 Backward Digit Sums
手写全排列,练练手感!...
分类:其他好文   时间:2014-08-06 01:57:40    阅读次数:206
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 digit. Add the two numbers and return it ...
分类:其他好文   时间:2014-08-05 00:51:58    阅读次数:257
[leetcode] Letter Combinations of a Phone Number
Given a digit string, return all possible letter combinations that the number could represent.
分类:其他好文   时间:2014-08-04 21:20:47    阅读次数:257
阶乘最后非零位
Last non-zero Digit in N!http://acm.hdu.edu.cn/showproblem.php?pid=1066 1 #include 2 #include 3 const int M=1024; 4 const int tomod[20]= {1,1,2,6,4,2,...
分类:其他好文   时间:2014-08-04 14:12:27    阅读次数:308
uva 11610 Reverse Prime
Problem FReverse PrimeInput:Standard InputOutput:Standard OutputThere are a few 7 digit positive numbers whose reverse number is a prime number and le...
分类:其他好文   时间:2014-08-03 23:07:36    阅读次数:469
Plus One leetcode java
题目:Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant digit i....
分类:编程语言   时间:2014-08-03 07:49:34    阅读次数:246
大数类模板(+-*/%等等)
注意:必需先定义,再使用。 #include #include using namespace std; #define DIGIT 4 //ËÄλ¸ô¿ª,¼´Íò½øÖÆ #define DEPTH 10000 //Íò½øÖÆ #define MAX 1000 typedef int bignum_t[MAX+1]; /**************...
分类:其他好文   时间:2014-08-02 10:06:53    阅读次数:345
hdu 1061 Rightmost Digit
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1061题目大意:n的n次方,输入个位数~这里介绍一个小的算法:快速幂取模首先,有n个数相乘,如s=a*a*a*a*a*a*a*a*a;假设b=a*a;则s=b*b*b*b*a;继续假设c=b*b;则s=c...
分类:Web程序   时间:2014-08-01 19:38:02    阅读次数:215
Leetcode--Add Two Numbers
Problem Description: 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 digit. Add the two numbe...
分类:其他好文   时间:2014-07-31 20:47:17    阅读次数:215
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!