码迷,mamicode.com
首页 >  
搜索关键字:digit recongnizer    ( 1477个结果
数位类统计问题--数位DP
有一类与数位有关的区间统计问题。这类问题往往具有比较浓厚的数学味道,无法暴力求解,需要在数位上进行递推等操作。这类问题往往需要一些预处理,这就用到了数位DP。本文地址:http://www.cnblogs.com/archimedes/p/numerical-digit-dp.html,转载请注明源...
分类:其他好文   时间:2014-05-26 12:44:11    阅读次数:260
LightOJ-1032 - Fast Bit Calculations
A bit is a binary digit, taking a logical value of either 1 or 0 (also referred to as "true" or "false" respectively). And every decimal number has a binary representation which is actually a series o...
分类:其他好文   时间:2014-05-24 17:19:41    阅读次数:335
【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 as a link...
分类:其他好文   时间:2014-05-23 07:43:23    阅读次数:246
2014北京邀请赛 Happy Reversal
H. Happy Reversal 64-bit integer IO format: %lld      Java class name: Main Elfness is studying in an operation "NOT". For a binary number A, if we do operation "NOT A", after that, all digit...
分类:移动开发   时间:2014-05-23 00:43:49    阅读次数:430
欧拉项目004:寻找最大的回文数
Problem 4: Largest palindrome product A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 × 99. Find the largest pal...
分类:其他好文   时间:2014-05-22 18:48:46    阅读次数:355
leetcode -day20 Add Two Numbers
1、 ?? 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 num...
分类:其他好文   时间:2014-05-21 10:49:10    阅读次数:221
Leetcode:Plus One
戳我去解题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 ...
分类:其他好文   时间:2014-05-20 10:42:14    阅读次数:244
汇编基础:二进制和十六进制
理解二进制和十六进制的最佳方法是先透彻的领悟十进制计数系统。十进制(Decimal)系统是基于10的计数系统(词根Deci-表示10)。“基于10”指的是由10个数位(Digit)0到9来表示数。 使用“位置(Place Value)”,可以用不多的几个数位(如10个十进制数位)来表示很大的数。所有...
分类:其他好文   时间:2014-05-18 19:56:27    阅读次数:346
LeetCode: Letter Combinations of a Phone Number [018]
【题目】 Given a digit string, return all possible letter combinations that the number could represent. A mapping of digit to letters (just like on the telephone buttons) is given below. Input:Digit string "23" Output: ["ad", "ae", "af", "bd", "be", "bf",...
分类:其他好文   时间:2014-05-18 07:30:12    阅读次数:340
Leetcode 线性表 数 Add Two Numbers
题意:给定两个代表数字的链表,每个节点里存放一个digit,数字是逆方向的,将这两个链表相加起来 思路: 1.i, j遍历l1,l2至最长,短的补零 2..设置一个进位变量c, 第i次遍历 l1,l2,c的和除以10进位,mod10留在这一位 3.出循环后还要检查是不是还有进位 复杂度:O(m+n), 空间O(m+n)...
分类:其他好文   时间:2014-05-15 13:38:03    阅读次数:258
1477条   上一页 1 ... 144 145 146 147 148 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!