We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef959a1 commit ab5b163Copy full SHA for ab5b163
src/main/java/com/fishercoder/solutions/_299.java
@@ -37,7 +37,7 @@ public String getHint(String secret, String guess) {
37
}
38
39
int cows = 0;
40
- for (int i = 0; i < 11; i++) {
+ for (int i = 0; i < 10; i++) {
41
cows += Math.min(secretCows[i], guessCows[i]);
42
43
return bulls + "A" + cows + "B";
0 commit comments