leetcode刷题遇见这种错误原因:
- 数组越界访问
-可能是数组、栈、队列等为空时进行访问操作或调用
我出错的地方:LeetCode剑指offer59题
class MaxQueue {
queue<int>q;
deque<int>dq;
public:
MaxQueue() {
}
int max_value() {
return dq.empty(
leetcode刷题遇见这种错误原因:
我出错的地方:LeetCode剑指offer59题
class MaxQueue {
queue<int>q;
deque<int>dq;
public:
MaxQueue() {
}
int max_value() {
return dq.empty(