随笔分类 - leetcode / 数据结构
摘要:[题目链接](https://leetcode-cn.com/problems/implement-stack-using-queues/ "题目链接") 题目描述: 请你仅使用两个队列实现一个后入先出(LIFO)的栈,并支持普通栈的全部四种操作(push、top、pop 和 empty)。 原题目
阅读全文
摘要:217. 存在重复元素 题目链接: [leetcode](https://leetcode-cn.com/problems/contains-duplicate/ "leetcode") 给定一个整数数组,判断是否存在重复元素。 如果存在一值在数组中出现至少两次,函数返回 true 。 如果数组中每
阅读全文

浙公网安备 33010602011771号