码迷,mamicode.com
首页 >  
搜索关键字:digits    ( 2164个结果
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 ...
分类:其他好文   时间:2015-08-02 19:52:11    阅读次数:94
【LeetCode-面试算法经典-Java实现】【066-Plus One(加一)】
【066-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 di...
分类:编程语言   时间:2015-08-02 06:24:03    阅读次数:159
HDU1664 (bfs +数论剪枝)
欢迎参加——每周六晚的BestCoder(有米!) Different Digits Time Limit: 10000/4000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 1129 Accepted Submission(s): 290Problem Descri...
分类:其他好文   时间:2015-08-01 01:05:13    阅读次数:119
ZOJ 1136 Multiple(BFS + 数论 同余剪枝 搜索数字的倍数 )
ZOJ Problem Set - 1136 Multiple Time Limit: 10 Seconds Memory Limit: 32768 KBa program that, given a natural number N between 0 and 4999 (inclusively), and M distinct decimal digits X1,X2..XM (a...
分类:其他好文   时间:2015-07-31 16:23:11    阅读次数:141
EularProject 41:最长的n位Pandigital素数问题
Pandigital prime Problem 41 We shall say that an n-digit number is pandigital if it makes use of all the digits 1 to n exactly once. For example, 2143 is a 4-digit pandigital and is also prime. What...
分类:其他好文   时间:2015-07-30 17:05:09    阅读次数:154
EularProject 37:双向可截素数
Truncatable primes Problem 37 The number 3797 has an interesting property. Being prime itself, it is possible to continuously remove digits from left to right, and remain prime at each stage: 3797, 7...
分类:其他好文   时间:2015-07-30 13:43:24    阅读次数:148
[LeetCode][Java] Sum Root to Leaf Numbers
题目: Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number. An example is the root-to-leaf path 1->2->3 which represents the number 123. Find t...
分类:编程语言   时间:2015-07-29 19:19:56    阅读次数:123
除法(暴力)
除法DescriptionDivisionWrite a program that finds and displays all pairs of 5-digit numbers that between them use the digits 0 through 9 once each, such...
分类:其他好文   时间:2015-07-29 09:01:36    阅读次数:115
除法 Division,UVa 725
DescriptionWrite a program that finds and displays all pairs of 5-digit numbers that between them use the digits 0 through 9 once each, such that the ...
分类:其他好文   时间:2015-07-28 20:54:15    阅读次数:110
【LeetCode】7 - Reverse Integer
Reverse digits of an integer.Example1:x = 123, return 321Example2:x = -123, return -321notice:Have you thought about this?Here are some good questions...
分类:其他好文   时间:2015-07-27 22:41:05    阅读次数:98
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!