摘要:
A binary gap within a positive integer N is any maximal sequence of consecutive zeros that is surrounded by ones at both ends in the binary representa 阅读全文
posted @ 2021-07-18 22:11
zhang_upstar
阅读(104)
评论(0)
推荐(1)
摘要:
描述 用两个栈来实现一个队列,分别完成在队列尾部插入整数(push)和在队列头部删除整数(pop)的功能。 队列中的元素为int类型。保证操作合法,即保证pop操作时队列内已有元素。 示例: 输入: ["PSH1","PSH2","POP","POP"] 返回: 1,2 解析: "PSH1":代表将 阅读全文
posted @ 2021-07-18 22:09
zhang_upstar
阅读(63)
评论(0)
推荐(0)

浙公网安备 33010602011771号