码迷,mamicode.com
首页 >  
搜索关键字:digits    ( 2164个结果
LeetCode 273. Integer to English Words
I changed the integer into string. If the length is not multiple of 3, append "0" ahead. Then, deal three digits by chunks. #include #include #include using namespace std; /* Convert a non-ne...
分类:其他好文   时间:2016-05-12 17:16:56    阅读次数:176
HDU 4333
B - Revolving Digits Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u SubmitStatusPracticeHDU 4333 Appoint description: Description One day Silence is interested in re...
分类:其他好文   时间:2016-05-12 17:02:04    阅读次数:181
7. Reverse Integer
Reverse digits of an integer. Example1: x = 123, return 321Example2: x = -123, return -321 Have you thought about this? Here are some good questions t ...
分类:其他好文   时间:2016-05-12 06:53:28    阅读次数:147
Add Digits
Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. For example: Given num = 38, the process is like: ...
分类:其他好文   时间:2016-05-11 21:39:49    阅读次数:121
2. 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 ...
分类:其他好文   时间:2016-05-10 23:11:27    阅读次数:169
[leetcode] 306. Additive Number 解题报告
题目链接: https://leetcode.com/problems/additive-number/ Additive number is a string whose digits can form additive sequence. A valid additive sequence should contain at least three numbers. Excep...
分类:其他好文   时间:2016-05-10 07:08:05    阅读次数:174
LeetCode:Add Digits
Add Digits Total Accepted: 92455 Total Submissions: 190510 Difficulty: Easy Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. Fo...
分类:其他好文   时间:2016-05-07 11:24:50    阅读次数:137
LeetCode-91.Decode Ways
A message containing letters from A-Z is being encoded to numbers using the following mapping: 'A' -> 1 'B' -> 2 ... 'Z' -> 26 Given an encoded message containing digits, determine the total nu...
分类:其他好文   时间:2016-05-07 11:02:55    阅读次数:156
2、LeetCode--Add Two Numbers
question:You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain ...
分类:其他好文   时间:2016-05-04 07:53:26    阅读次数:160
66. Plus One Java solutions
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 is a ...
分类:编程语言   时间:2016-05-03 16:01:40    阅读次数:162
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!