diff --git a/Cpp Basics/queue.cpp b/Cpp Basics/queue.cpp new file mode 100644 index 0000000..eb259fe --- /dev/null +++ b/Cpp Basics/queue.cpp @@ -0,0 +1,31 @@ +class MyQueue { +public: + MyQueue() { + + } + + void push(int x) { + + } + + int pop() { + + } + + int peek() { + + } + + bool empty() { + + } +}; + +/** + * Your MyQueue object will be instantiated and called as such: + * MyQueue* obj = new MyQueue(); + * obj->push(x); + * int param_2 = obj->pop(); + * int param_3 = obj->peek(); + * bool param_4 = obj->empty(); + */