Exercise: Classic Design Problems on LeetCode labuladong Original About 12933 words
353. 贪吃蛇 https://leetcode.cn/problems/design-snake-game 353. Design Snake Game https://leetcode.com/problems/design-snake-game 729. 我的日程安排表 I https://leetcode.cn/problems/my-calendar-i 729. My Calendar I https://leetcode.com/problems/my-calendar-i 950. 按递增顺序显示卡牌 https://leetcode.cn/problems/reveal-cards-in-increasing-order 950. Reveal Cards In Increasing Order https://leetcode.com/problems/reveal-cards-in-increasing-order 379. 电话目录管理系统 https://leetcode.cn/problems/design-phone-directory 379. Design Phone Directory https://leetcode.com/problems/design-phone-directory 1700. 无法吃午餐的学生数量 https://leetcode.cn/problems/number-of-students-unable-to-eat-lunch 1700. Number of Students Unable to Eat Lunch https://leetcode.com/problems/number-of-students-unable-to-eat-lunch 155. 最小栈 https://leetcode.cn/problems/min-stack 155. Min Stack https://leetcode.com/problems/min-stack 1670. 设计前中后队列 https://leetcode.cn/problems/design-front-middle-back-queue 1670. Design Front Middle Back Queue https://leetcode.com/problems/design-front-middle-back-queue 895. 最大频率栈 https://leetcode.cn/problems/maximum-frequency-stack 895. Maximum Frequency Stack https://leetcode.com/problems/maximum-frequency-stack 284. 窥探迭代器 https://leetcode.cn/problems/peeking-iterator 284. Peeking Iterator https://leetcode.com/problems/peeking-iterator 251. 展开二维向量 https://leetcode.cn/problems/flatten-2d-vector 251. Flatten 2D Vector https://leetcode.com/problems/flatten-2d-vector 281. 锯齿迭代器 https://leetcode.cn/problems/zigzag-iterator 281. Zigzag Iterator https://leetcode.com/problems/zigzag-iterator Prerequisites
Before reading this article, you need to learn:
Design problems often ask you to combine basic data structures to solve specific problems in certain scenarios. Let's look at a few simple but interesting problems.
Prev
Designing an Exam Room Algorithm
Next
How to Implement a Calculator