上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 44 下一页
摘要: LeetCode 682. Baseball Game (棒球比赛) 题目 链接 https://leetcode-cn.com/problems/baseball-game/ 问题描述 你现在是一场采用特殊赛制棒球比赛的记录员。这场比赛由若干回合组成,过去几回合的得分可能会影响以后几回合的得分。 阅读全文
posted @ 2022-03-26 09:14 cheng102e 阅读(96) 评论(0) 推荐(0) 编辑
摘要: LeetCode 1541. Minimum Insertions to Balance a Parentheses String (平衡括号字符串的最少插入次数) 题目 链接 https://leetcode-cn.com/problems/minimum-insertions-to-balanc 阅读全文
posted @ 2022-03-25 17:56 cheng102e 阅读(34) 评论(0) 推荐(0) 编辑
摘要: LeetCode 921. Minimum Add to Make Parentheses Valid (使括号有效的最少添加) 题目 链接 https://leetcode-cn.com/problems/minimum-add-to-make-parentheses-valid/ 问题描述 只有 阅读全文
posted @ 2022-03-25 16:58 cheng102e 阅读(76) 评论(0) 推荐(0) 编辑
摘要: LeetCode 225. Implement Stack using Queues (用队列实现栈) 题目 链接 https://leetcode-cn.com/problems/implement-stack-using-queues/ 问题描述 请你仅使用两个队列实现一个后入先出(LIFO)的 阅读全文
posted @ 2022-03-25 12:11 cheng102e 阅读(28) 评论(0) 推荐(0) 编辑
摘要: LeetCode 232. Implement Queue using Stacks (用栈实现队列) 题目 链接 https://leetcode-cn.com/problems/implement-queue-using-stacks/ 问题描述 请你仅使用两个栈实现先入先出队列。队列应当支持一 阅读全文
posted @ 2022-03-25 11:16 cheng102e 阅读(22) 评论(0) 推荐(0) 编辑
摘要: LeetCode 92. Reverse Linked List II (反转链表 II) 题目 链接 https://leetcode-cn.com/problems/reverse-linked-list-ii/ 问题描述 给你单链表的头指针 head 和两个整数 left 和 right ,其 阅读全文
posted @ 2022-03-24 17:47 cheng102e 阅读(18) 评论(0) 推荐(0) 编辑
摘要: LeetCode 141. Linked List Cycle (环形链表) 题目 链接 https://leetcode-cn.com/problems/linked-list-cycle/ 问题描述 给你一个链表的头节点 head ,判断链表中是否有环。 如果链表中有某个节点,可以通过连续跟踪 阅读全文
posted @ 2022-03-24 16:46 cheng102e 阅读(21) 评论(0) 推荐(0) 编辑
摘要: LeetCode 876. Middle of the Linked List (链表的中间结点) 题目 链接 https://leetcode-cn.com/problems/middle-of-the-linked-list/ 问题描述 给定一个头结点为 head 的非空单链表,返回链表的中间结 阅读全文
posted @ 2022-03-24 16:40 cheng102e 阅读(18) 评论(0) 推荐(0) 编辑
摘要: LeetCode 19. Remove Nth Node From End of List (删除链表的倒数第 N 个结点) 题目 链接 https://leetcode-cn.com/problems/remove-nth-node-from-end-of-list/ 问题描述 给你一个链表,删除 阅读全文
posted @ 2022-03-24 16:33 cheng102e 阅读(29) 评论(0) 推荐(0) 编辑
摘要: LeetCode 23. Merge k Sorted Lists (合并K个升序链表) 题目 链接 https://leetcode-cn.com/problems/merge-k-sorted-lists/ 问题描述 给你一个链表数组,每个链表都已经按升序排列。 请你将所有链表合并到一个升序链表 阅读全文
posted @ 2022-03-24 14:17 cheng102e 阅读(21) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 44 下一页