My LeetCode grinding. Trying to do a problem a day.
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

problem.txt 187B

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.