Skip to content

Commit

Permalink
Time: 39 ms (42.86%), Space: 44.1 MB (77.89%) - LeetHub
Browse files Browse the repository at this point in the history
  • Loading branch information
Amit-S-Sahu committed Oct 30, 2024
1 parent df77744 commit e7a8afe
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ public int minimumMountainRemovals(int[] nums) {
int n = nums.length;
if (n < 3) return 0;

int[] inc = new int[n];
int[] dec = new int[n];
int inc[] = new int[n];
int dec[] = new int[n];

for (int i = 0; i < n; i++) {
inc[i] = 1;
Expand Down

0 comments on commit e7a8afe

Please sign in to comment.