摘要: class MinStack { public: stack<int> st;//普通栈 stack<int> stMin;//单调栈 /** initialize your data structure here. */ MinStack() { } void push(int x) { st.p 阅读全文
posted @ 2023-03-29 15:41 穿过雾的阴霾 阅读(16) 评论(0) 推荐(0)
摘要: class Solution { public: int turn,n,m; static const int N=410; int dx[4] = {0, 1, 0, -1}, dy[4] = {1, 0, -1, 0};//右下左上 bool st[N][N]; bool check(int i 阅读全文
posted @ 2023-03-29 14:52 穿过雾的阴霾 阅读(10) 评论(0) 推荐(0)