mirror of
https://github.com/arkorty/LeetCode.git
synced 2026-03-18 00:57:17 +00:00
Refactor almost everything
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
#include <stack>
|
||||
|
||||
class MyQueue {
|
||||
private:
|
||||
private:
|
||||
std::stack<int> shelfA;
|
||||
std::stack<int> shelfB;
|
||||
|
||||
public:
|
||||
public:
|
||||
MyQueue() {}
|
||||
|
||||
void push(int data) { shelfA.push(data); }
|
||||
|
||||
Reference in New Issue
Block a user