
String
Crystal_ting
个人博客 limengting.site
展开
-
[3]43. Multiply Strings(Java)
Given two non-negative integers num1 and num2 represented as strings, return the product of num1 and num2.Note:1、 The length of both num1 and num2 is < 110. 2、 Both num1 and num2 contains only digits原创 2017-11-07 22:09:14 · 372 阅读 · 0 评论 -
[3]《剑指offer》17.打印从1到最大的n位数
题目描述: 输入数字n,按顺序打印出从1到最大的n位十进制数。比如输入3,则打印出1\2\3一直到最大的3位数299 思路一:考虑大数用String表示,考虑从第一个不为0的数字开始输出 public class Print1ToMaxOfNDigits { public static void Print1ToMaxOfNDigits(int n) { if (...原创 2018-03-29 17:04:31 · 284 阅读 · 0 评论