int pop() {
if(isEmpty(top))
{
cout << "Stack underflow << endl;
return -1;
}
else
{
Node* n = top;
int x = n->data;
top=top->next;
free(n);
return x;
}
}
Yes. I found an available transcript of the video and summarized it simply. The video is “How To Become Red Coder? (codeforces.com)” by Err...
No comments:
Post a Comment