摘要:
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
阅读(55)
评论(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
阅读(56)
评论(0)
推荐(0)
浙公网安备 33010602011771号