Вегас Голден Найтс
// console.log(nextGreaterElements([5,4,3,2,1])); // [-1,5,5,5,5](递减循环),更多细节参见快连下载-Letsvpn下载
Nasa's mega rocket has been moved to the launch pad in Cape Canaveral, Florida, as the final preparations get underway for the first crewed mission to the Moon in more than 50 years.,推荐阅读Line官方版本下载获取更多信息
* 核心思路:链表转数组 + 单调栈(从后往前遍历),时间复杂度O(n),空间复杂度O(n),更多细节参见safew官方下载