码迷,mamicode.com
首页 >  
搜索关键字:digits    ( 2164个结果
codeforce Present from Lena 打印菱形
Vasya's birthday is approaching and Lena decided to sew a patterned handkerchief to him as a present. Lena chose digits from 0 to n as the pattern. The digits will form a rhombus. The largest digit ...
分类:其他好文   时间:2014-07-22 23:04:32    阅读次数:412
ProjectEuler_P13
Problem:Work out the first ten digits of the sum of the following one-hundred 50-digit numbers.3710728753390210279879799822083759024651013574025046376...
分类:其他好文   时间:2014-05-07 13:34:38    阅读次数:299
Leetcode | 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...
分类:其他好文   时间:2014-05-05 23:55:36    阅读次数:407
LeetCode: plusOne 题解
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 at...
分类:其他好文   时间:2014-05-04 19:46:18    阅读次数:372
【LeetCode】Reverse Integer
题目 Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = -123, return -321 Have you thought about this? Here are some good questions to ask before coding. Bonus points...
分类:其他好文   时间:2014-05-03 17:35:30    阅读次数:345
UVA之11549 - Calculator Conundrum
【题目】 Problem C CALCULATOR CONUNDRUM Alice got a hold of an old calculator that can display n digits. She was bored enough to come up with the following time waster. She enters a number k t...
分类:其他好文   时间:2014-05-03 15:37:03    阅读次数:308
欧拉计划16-20题
16、Power digit sum215= 32768 and the sum of its digits is 3 + 2 + 7 + 6 + 8 = 26.What is the sum of the digits of the number 21000?题目大意:215= 32768 并且其...
分类:其他好文   时间:2014-05-02 13:17:49    阅读次数:1223
Leetcode: Plus One
少数次通过 1 public class Solution { 2 public int[] plusOne(int[] digits) { 3 int[] carry=new int[digits.length+1]; 4 int[] results=new i...
分类:其他好文   时间:2014-05-02 08:23:11    阅读次数:271
leetcode__Add Two Numbers && Climbing Stairs
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 digit. Add the two numbers and return it as a link...
分类:其他好文   时间:2014-05-01 22:08:19    阅读次数:366
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 ...
分类:其他好文   时间:2014-05-01 20:18:54    阅读次数:425
2164条   上一页 1 ... 214 215 216 217 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!