Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 2cf237e

Browse files
refactor 1051
1 parent 82837bb commit 2cf237e

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

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

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,6 @@
22

33
import java.util.Arrays;
44

5-
/**
6-
* 1051. Height Checker
7-
*
8-
* Students are asked to stand in non-decreasing order of heights for an annual photo.
9-
* Return the minimum number of students not standing in the right positions.
10-
* (This is the number of students that must move in order for all students to be standing in non-decreasing order of height.)
11-
*
12-
* Example 1:
13-
* Input: [1,1,4,2,1,3]
14-
* Output: 3
15-
* Explanation:
16-
* Students with heights 4, 3 and the last 1 are not standing in the right positions.
17-
*
18-
* Note:
19-
*
20-
* 1 <= heights.length <= 100
21-
* 1 <= heights[i] <= 100
22-
* */
235
public class _1051 {
246
public static class Solution1 {
257
public int heightChecker(int[] heights) {

0 commit comments

Comments
 (0)