Skip to content

Commit 073978a

Browse files
committed
added failed message
1 parent aa6d0dc commit 073978a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

contents/approximate_counting/code/java/ApproximateCounting.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ static void testApproximateCount(int nTrials, int nItems, double a, double thres
6464

6565
if (Math.abs((avg - nItems) / nItems) < threshold) {
6666
System.out.println("passed");
67+
} else {
68+
System.out.println("failed");
6769
}
6870
}
6971

0 commit comments

Comments
 (0)