본격적으로 자료구조 공부를 시작했다. 스택 문제를 C++로 하나하나 구현해보았다. #include #include using namespace std; int N; int stack[10001]; int tail = -1; void push(int commandNum) { stack[++tail] = commandNum; } void pop() { if (tail != -1) { cout