阅读背景:

LeetCode - 503. Next Greater Element II

来源:互联网 

Given a circular array (the next element of the last element is the first element of the array), print the Next Greater Number for every element. The Next Greater Number of a number x is the first greater number to its traversing-order next in the array, which means you could search circularly to find its next greater number. If it doesn't exist, output -1 for this number.Given a circular array (the next element of the




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: