A palindromic number or numeral palindrome is a ‘symmetrical’ number like 16461 that remains the same when its digits are reversed. In this problem yo ...
分类:
其他好文 时间:
2017-08-20 18:20:45
阅读次数:
161
import stringimport randomdef gen_psd(length=10): """length is password length""" letters = string.ascii_lowercase + string.digits times = length/len( ...
分类:
编程语言 时间:
2017-08-19 20:03:01
阅读次数:
224
题目描述: You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes ...
分类:
其他好文 时间:
2017-08-19 15:05:11
阅读次数:
163
问题: Given a binary tree containing digits from0-9only, each root-to-leaf path could represent a number. An example is the root-to-leaf path1->2->3whic ...
分类:
其他好文 时间:
2017-08-18 14:31:04
阅读次数:
209
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 whic ...
分类:
其他好文 时间:
2017-08-16 20:20:18
阅读次数:
216
题目链接:http://codeforces.com/problemset/problem/489/C 题目大意:给定位数和各个位的和,问满足条件数字的最大值,最小值。 解题思路:模拟即可。主要是细节判断。 代码: 题目: C. Given Length and Sum of Digits... t ...
分类:
其他好文 时间:
2017-08-16 18:23:37
阅读次数:
203
/** 参考:http://blog.csdn.net/acdreamers/article/details/8313828 参考:http://www.61mon.com/index.php/archives/186/ 题目:hdu4333 Revolving Digits 链接:http://a... ...
分类:
其他好文 时间:
2017-08-13 12:19:25
阅读次数:
127
Given a non-empty string containing an out-of-order English representation of digits 0-9, output the digits in ascending order. Note: Example 1: Examp ...
分类:
其他好文 时间:
2017-08-10 22:28:33
阅读次数:
208
Happy Number UVA - 10591 Let the sum of the square of the digits of a positive integer S0 be represented by S1. In a similar way, let the sum of the s ...
分类:
移动开发 时间:
2017-08-10 17:04:00
阅读次数:
240
Reverse digits of an integer.Example1: x = 123, return 321Example2: x = -123, return -321click to show spoilers.Have you thought about this?Here are s... ...
分类:
其他好文 时间:
2017-08-10 01:10:18
阅读次数:
138