My LeetCode grinding. Trying to do a problem a day.
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

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.