mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2025-07-09 11:34:46 +08:00
修改 0503.下一个更大元素II go版本中的代码错误
This commit is contained in:
@ -207,7 +207,7 @@ class Solution:
|
|||||||
```go
|
```go
|
||||||
func nextGreaterElements(nums []int) []int {
|
func nextGreaterElements(nums []int) []int {
|
||||||
length := len(nums)
|
length := len(nums)
|
||||||
result := make([]int,length,length)
|
result := make([]int,length)
|
||||||
for i:=0;i<len(result);i++{
|
for i:=0;i<len(result);i++{
|
||||||
result[i] = -1
|
result[i] = -1
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user