1、题目描述 2、题目分析 从后向前做加法,等于10则进位,否则直接加1 ,返回 digits; 3、代码 ...
分类:
其他好文 时间:
2018-07-11 21:22:04
阅读次数:
128
problem Given a non negative integer N, your task is to compute the sum of all the digits of N, and output every digit of the sum in English. Input Sp ...
分类:
其他好文 时间:
2018-07-04 22:41:13
阅读次数:
141
缺欠的是做题的思路,当看到这道题发现n是10^9级别,第一反应是得找到一个公式。但怎么找没想出来。 满足i+j+k+p = n (i,j,k,p分别是1,5,10,50取的个数),我们可以用n^3代价(枚举i,j,k)n比较小的时候的答案,并试着从枚举得到的答案里找到规律。 事实也确实能从中找到规律 ...
分类:
其他好文 时间:
2018-07-02 21:30:29
阅读次数:
662
Add Two Numbers You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of th ...
分类:
其他好文 时间:
2018-07-02 13:07:38
阅读次数:
186
A message containing letters from A-Z is being encoded to numbers using the following mapping: Given a non-empty string containing only digits, determ ...
分类:
编程语言 时间:
2018-06-29 23:33:43
阅读次数:
191
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 contai ...
分类:
其他好文 时间:
2018-06-24 13:08:54
阅读次数:
176
数据集原数据来源:http://archive.ics.uci.edu/ml/datasets/Pen-Based+Recognition+of+Handwritten+Digits 数据集简介:这个数据集一共有1797张手写数字,每张手写数字的大小都为8*8像素在sklearn中,被保存为一个nu ...
分类:
其他好文 时间:
2018-06-24 00:45:14
阅读次数:
941
阅读目录 一、F查询和Q查询 1、F查询 查询前的准备 class Product(models.Model): name = models.CharField(max_length=32) price = models.DecimalField(max_digits=10, decimal_pla ...
分类:
编程语言 时间:
2018-06-23 00:00:07
阅读次数:
193
66_Plus One [TOC] Description Given a non empty array of digits representing a non negative integer, plus one to the integer. The digits are stored su ...
分类:
其他好文 时间:
2018-06-17 12:29:13
阅读次数:
175
Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the number could represent. A mapping of digit to le ...
分类:
移动开发 时间:
2018-06-16 10:30:42
阅读次数:
265