Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangshanmeta committed Oct 21, 2024
1 parent 6a335ed commit fa28b78
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/LCP01.guess-numbers.100107/solution.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
class Solution {
public int game(int[] guess, int[] answer) {
int result = 0;
for(int i=0;i<guess.length;i++){
if(guess[i] == answer[i]){
result++;
}
}
return result;
}
}

0 comments on commit fa28b78

Please sign in to comment.