Skip to content

Commit c8c9bb5

Browse files
committed
Runtime: 2 ms (Top 67.33%) | Memory: 55.1 MB (Top 5.58%)
1 parent aa83bd2 commit c8c9bb5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/algorithms/R/Replace Elements with Greatest Element on Right Side/Replace Elements with Greatest Element on Right Side.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Runtime: 2 ms (Top 67.33%) | Memory: 55.1 MB (Top 5.58%)
12
class Solution {
23
public int[] replaceElements(int[] arr) {
34
int greatElement = -1;
@@ -8,4 +9,4 @@ public int[] replaceElements(int[] arr) {
89
}
910
return arr;
1011
}
11-
}
12+
}

0 commit comments

Comments
 (0)