Skip to content

Commit 7eef84e

Browse files
refactor 453
1 parent 036d929 commit 7eef84e

File tree

1 file changed

+0
-19
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+0
-19
lines changed

src/main/java/com/fishercoder/solutions/_453.java

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,5 @@
11
package com.fishercoder.solutions;
22

3-
/**
4-
* 453. Minimum Moves to Equal Array Elements
5-
*
6-
* Given a non-empty integer array of size n,
7-
* find the minimum number of moves required to make all array elements equal, where a move is incrementing n - 1 elements by 1.
8-
9-
Example:
10-
11-
Input:
12-
[1,2,3]
13-
14-
Output:
15-
3
16-
17-
Explanation:
18-
Only three moves are needed (remember each move increments two elements):
19-
20-
[1,2,3] => [2,3,3] => [3,4,3] => [4,4,4]*/
21-
223
public class _453 {
234
public static class Solution1 {
245
/**

0 commit comments

Comments
 (0)