My LeetCode grinding. Trying to do a problem a day.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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.