rmq/stack.c
double pop(stack *stk)
{
    if(stkepty(stk))
        return -INFINITY;
    double key = stk->top->key;
    node *top = stk->top;
    stk->top = top->nxt;
    freend(top);
    return key;
}
//remove a key from the stack
remove a key from the stack
remove a key from the stack
double pop(stack *stk)
{
    if(stkepty(stk))
        return -INFINITY;
    double key = stk->top->key;
    node *top = stk->top;
    stk->top = top->nxt;
    freend(top);
    return key;
}
double pop ( stack * stk ) { if ( stkepty ( stk ) ) return - INFINITY ; double key = stk -> top -> key ; node * top = stk -> top ; stk -> top = top -> nxt ; freend ( top ) ; return key ; }
remove a key from the stack
remove a key from the stack