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

Method min

java/Chapter 17/Question17_14/Result.java:15–23  ·  view source on GitHub ↗
(Result r1, Result r2)

Source from the content-addressed store, hash-verified

13 }
14
15 public static Result min(Result r1, Result r2) {
16 if (r1 == null) {
17 return r2;
18 } else if (r2 == null) {
19 return r1;
20 }
21
22 return r2.invalid < r1.invalid ? r2 : r1;
23 }
24}

Callers 6

parseMethod · 0.95
findElementMethod · 0.45
getKthMagicNumberMethod · 0.45
parseOptimizedMethod · 0.45
parseSimpleMethod · 0.45
magicFastMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected