leetcode 503.下一个更大元素Ⅱ
报错代码:
class Solution {
public:
vector<int> nextGreaterElements(vector<int>& nums) {
stack<int>st;
vector<int>result(nums.size(),-1);
st.push(0);
for(int i=<
leetcode 503.下一个更大元素Ⅱ
报错代码:
class Solution {
public:
vector<int> nextGreaterElements(vector<int>& nums) {
stack<int>st;
vector<int>result(nums.size(),-1);
st.push(0);
for(int i=<