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
【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
欢迎参加——每周六晚的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 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
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
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
题目:
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
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
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