2021年2月18日
摘要: bool IsPopOrder(const int* pPush, const int* pPop, int nLength) { if (pPush == nullptr || pPop == nullptr || nLength <= 0) return false; std::stack<in 阅读全文
posted @ 2021-02-18 14:21 Noora&w 阅读(52) 评论(0) 推荐(0) 编辑
摘要: std::stack<int> m_data; std::stack<int> m_min; //辅助栈 template <typename T> void StackWithMin<T>::push(const T& value) { m_data.push(value); if (m_min. 阅读全文
posted @ 2021-02-18 10:37 Noora&w 阅读(53) 评论(0) 推荐(0) 编辑