MCPcopy Index your code
hub / github.com/careercup/ctci / minus

Method minus

java/Chapter 7/Question7_4/Question.java:16–18  ·  view source on GitHub ↗
(int a, int b)

Source from the content-addressed store, hash-verified

14
15 /* Subtract two numbers by negating b and adding them */
16 public static int minus(int a, int b) {
17 return a + negate(b);
18 }
19
20 /* Return absolute value */
21 public static int abs(int a) {

Callers 1

mainMethod · 0.95

Calls 1

negateMethod · 0.95

Tested by

no test coverage detected