Updated "Java Dequeue" problem.

This commit is contained in:
Rodney Shaghoulian
2018-05-27 17:13:14 -07:00
parent bf26fc664d
commit e188524280
@@ -41,6 +41,12 @@ public class test {
map.merge(num, 1, Integer::sum);
max = Math.max(max, map.size());
/* If all integers are unique, we have found our largest
possible answer, so we can break out of loop */
if (max == m) {
break;
}
}
scan.close();