用C++双向队列queue做的,判断和对头元素大小,大就pop_front,小就push_front,输出队列size
点赞 评论

相关推荐

牛客网
牛客企业服务