Skip to content

Commit 566e270

Browse files
authored
Create Solution.java
1 parent 31c410b commit 566e270

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class Solution {
2+
public int minMoves(int[] nums) {
3+
return Arrays.stream(nums).sum() - Arrays.stream(nums).min().getAsInt() * nums.length;
4+
}
5+
}

0 commit comments

Comments
 (0)