Fork me on GitHub
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 14 下一页
摘要: Backspace String Compare 比较含退格的字符串 给定 S 和 T 两个字符串,当它们分别被输入到空白的文本编辑器后,判断二者是否相等,并返回结果。 # 代表退格字符。 注意:如果对空文本输入退格字符,文本继续为空。 Input: S = "ab##", T = "c#d#" O 阅读全文
posted @ 2021-04-14 16:16 WilliamCui 阅读(57) 评论(0) 推荐(0)
摘要: Validate Stack Sequence 验证栈序列 Given two sequences pushed and popped with distinct values, return true if and only if this could have been the result o 阅读全文
posted @ 2021-04-14 16:12 WilliamCui 阅读(102) 评论(0) 推荐(0)
摘要: Baseball Game 棒球比赛 比赛开始时,记录是空白的。你会得到一个记录操作的字符串列表 ops,其中 ops[i] 是你需要记录的第 i 项操作,ops 遵循下述规则: 整数 x - 表示本回合新获得分数 x "+" - 表示本回合新获得的得分是前两次得分的总和。题目数据保证记录此操作时前 阅读全文
posted @ 2021-04-14 16:11 WilliamCui 阅读(119) 评论(0) 推荐(0)
摘要: Pancake Sorting 煎饼排序 Given an array of integers arr, sort the array by performing a series of pancake flips. In one pancake flip we do the following s 阅读全文
posted @ 2021-04-11 10:31 WilliamCui 阅读(132) 评论(0) 推荐(0)
摘要: 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)
摘要: Design Circular Deque 设计循环双端队列 Description Design your implementation of the circular double-ended queue (deque). Your implementation should support f 阅读全文
posted @ 2021-04-01 10:42 WilliamCui 阅读(84) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 14 下一页