Fork me on GitHub
摘要: Lemonade Change 任务调度器 At a lemonade stand, each lemonade costs $5. Customers are standing in a queue to buy from you, and order one at a time (in the 阅读全文
posted @ 2021-04-10 10:34 WilliamCui 阅读(79) 评论(0) 推荐(0)
摘要: Buddy Strings 亲密字符串 Given two strings a and b, return true if you can swap two letters in a so the result is equal to b, otherwise, return false. Swap 阅读全文
posted @ 2021-04-10 10:04 WilliamCui 阅读(45) 评论(0) 推荐(0)
摘要: Design Front Middle Back Queue 设计前中后队列 Description Design a queue that supports push and pop operations in the front, middle, and back. Implement the 阅读全文
posted @ 2021-04-10 09:59 WilliamCui 阅读(86) 评论(0) 推荐(0)
摘要: Design Circular Queue 设计循环队列 Description Design your implementation of the circular queue. The circular queue is a linear data structure in which the 阅读全文
posted @ 2021-04-10 09:56 WilliamCui 阅读(92) 评论(0) 推荐(0)
摘要: Task Scheduler 任务调度器 Given a characters array tasks, representing the tasks a CPU needs to do, where each letter represents a different task. Tasks co 阅读全文
posted @ 2021-04-10 09:51 WilliamCui 阅读(224) 评论(0) 推荐(0)