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

Commitbc284b5

Browse files
refactor 1299
1 parentc332206 commitbc284b5

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

‎src/main/java/com/fishercoder/solutions/_1299.java

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

33
importjava.util.PriorityQueue;
44

5-
/**
6-
* 1299. Replace Elements with Greatest Element on Right Side
7-
*
8-
* Given an array arr, replace every element in that array with the greatest element among the elements to its right, and replace the last element with -1.
9-
* After doing so, return the array.
10-
*
11-
* Example 1:
12-
* Input: arr = [17,18,5,4,6,1]
13-
* Output: [18,6,6,6,1,-1]
14-
* */
155
publicclass_1299 {
166
publicstaticclassSolution1 {
177
publicint[]replaceElements(int[]arr) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp