Skip to content

Latest commit

 

History

History
29 lines (17 loc) · 542 Bytes

Ex_1_2_17.md

File metadata and controls

29 lines (17 loc) · 542 Bytes
title date draft tags categories
算法4 Java解答 1.2.17
2019-02-22 07:35:22 +0800
false
JAVA
技术
归档

1.2.17

问题:

Robust implementation of rational numbers. Use assertions to develop an im- plementation of Rational (see Exercise 1.2.16) that is immune to overflow. 1.2.18

分析:

java8 Math.addExact中有代码判断溢出参考。

参考:

what-is-the-difference-between-and-in-java