Created
August 13, 2015 04:50
-
-
Save akiniwa/355cec387c30d1d83a19 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int top; | |
int S[1000]; | |
void push(int d) { | |
S[++top] = d; | |
} | |
int pop() { | |
return S[top--]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment