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 82837bb commit 2cf237eCopy full SHA for 2cf237e
src/main/java/com/fishercoder/solutions/_1051.java
@@ -2,24 +2,6 @@
2
3
import java.util.Arrays;
4
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
- * */
23
public class _1051 {
24
public static class Solution1 {
25
public int heightChecker(int[] heights) {
0 commit comments