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;
}
}
class Solution { public int [] countOppositeParity ( int [] nums ) { // approach 1 - checks every pair int n = n...
No comments:
Post a Comment