2019年3月13日

关于java中BigDecimal类

摘要: Java在java.math包中提供的API类BigDecimal,用来对超过16位有效位的数进行精确的运算。双精度浮点型变量double可以处理16位有效数。在实际应用中,需要对更大或者更小的数进行运算和处理。float和double只能用来做科学计算或者是工程计算,在商业计算中要用java.ma 阅读全文

posted @ 2019-03-13 21:24 shaer 阅读(90) 评论(0) 推荐(0) 编辑

343. Integer Break (分割整数的最大乘积)

摘要: Given a positive integer n, break it into the sum of at least two positive integers and maximize the product of those integers. Return the maximum pro 阅读全文

posted @ 2019-03-13 17:25 shaer 阅读(245) 评论(0) 推荐(0) 编辑

413. Arithmetic Slices(数组中等差递增子区间的个数)

摘要: A sequence of number is called arithmetic if it consists of at least three elements and if the difference between any two consecutive elements is the 阅读全文

posted @ 2019-03-13 16:19 shaer 阅读(145) 评论(0) 推荐(0) 编辑

导航