My LeetCode grinding. Trying to do a problem a day.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123
  1. 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.
  2. After doing so, return the array.