rmq/stack.c
double top(stack *stk)
{
    if(stkepty(stk) == 0)
        return stk->top->key;
    return -INFINITY;
}
//returns the top of the stack
returns the top of the stack
returns the top of the stack
double top(stack *stk)
{
    if(stkepty(stk) == 0)
        return stk->top->key;
    return -INFINITY;
}
double top ( stack * stk ) { if ( stkepty ( stk ) == 0 ) return stk -> top -> key ; return - INFINITY ; }
returns the top of the stack
returns the top of the stack