Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2cf237e

Browse files
refactor 1051
1 parent82837bb commit2cf237e

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
importjava.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
publicclass_1051 {
246
publicstaticclassSolution1 {
257
publicintheightChecker(int[]heights) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp