My LeetCode grinding. Trying to do a problem a day.
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

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.