修改 0503.下一个更大元素II go版本中的代码错误
This commit is contained in:
@@ -207,7 +207,7 @@ class Solution:
|
||||
```go
|
||||
func nextGreaterElements(nums []int) []int {
|
||||
length := len(nums)
|
||||
result := make([]int,length,length)
|
||||
result := make([]int,length)
|
||||
for i:=0;i<len(result);i++{
|
||||
result[i] = -1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user