[LeetCode] 1299. Replace Elements with Greatest Element on Right Side 将a56爆大奖在线娱乐元素替换为右侧最大元素

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 -
posted @ 2022-05-18 12:50  Grandyang  阅读(145)  评论(0编辑  收藏  举报
Fork me on GitHub