Skip to content

Commit bc284b5

Browse files
refactor 1299
1 parent c332206 commit bc284b5

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
import java.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
public class _1299 {
166
public static class Solution1 {
177
public int[] replaceElements(int[] arr) {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy