上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 44 下一页
摘要: LeetCode 02.07. Intersection of Two Linked Lists LCCI (链表相交) 题目 链接 https://leetcode.cn/problems/intersection-of-two-linked-lists-lcci/ 问题描述 给你两个单链表的头节 阅读全文
posted @ 2022-05-18 15:46 cheng102e 阅读(22) 评论(0) 推荐(0) 编辑
摘要: LeetCode 24. Swap Nodes in Pairs (两两交换链表中的节点) 题目 链接 https://leetcode.cn/problems/swap-nodes-in-pairs/ 问题描述 给你一个链表,两两交换其中相邻的节点,并返回交换后链表的头节点。你必须在不修改节点内部 阅读全文
posted @ 2022-05-18 15:33 cheng102e 阅读(23) 评论(0) 推荐(0) 编辑
摘要: LeetCode 707. Design Linked List (设计链表) 题目 链接 https://leetcode.cn/problems/design-linked-list/ 问题描述 设计链表的实现。您可以选择使用单链表或双链表。单链表中的节点应该具有两个属性:val 和 next。 阅读全文
posted @ 2022-05-18 14:53 cheng102e 阅读(34) 评论(0) 推荐(0) 编辑
摘要: LeetCode 203. Remove Linked List Elements (移除链表元素) 题目 链接 https://leetcode-cn.com/problems/remove-linked-list-elements/ 问题描述 给你一个链表的头节点 head 和一个整数 val 阅读全文
posted @ 2022-04-29 21:25 cheng102e 阅读(20) 评论(0) 推荐(0) 编辑
摘要: LeetCode 59. Spiral Matrix II (螺旋矩阵 II) 题目 链接 https://leetcode-cn.com/problems/spiral-matrix-ii/ 问题描述 给你一个正整数 n ,生成一个包含 1 到 n2 所有元素,且元素按顺时针顺序螺旋排列的 n x 阅读全文
posted @ 2022-04-28 21:34 cheng102e 阅读(13) 评论(0) 推荐(0) 编辑
摘要: LeetCode 54. Spiral Matrix (螺旋矩阵) 题目 链接 https://leetcode-cn.com/problems/spiral-matrix/ 问题描述 给你一个 m 行 n 列的矩阵 matrix ,请按照 顺时针螺旋顺序 ,返回矩阵中的所有元素。 示例 输入:ma 阅读全文
posted @ 2022-04-28 21:33 cheng102e 阅读(11) 评论(0) 推荐(0) 编辑
摘要: LeetCode 904. Fruit Into Baskets (水果成篮) 题目 链接 问题描述 你正在探访一家农场,农场从左到右种植了一排果树。这些树用一个整数数组 fruits 表示,其中 fruits[i] 是第 i 棵树上的水果 种类 。 你想要尽可能多地收集水果。然而,农场的主人设定了 阅读全文
posted @ 2022-04-28 21:02 cheng102e 阅读(37) 评论(0) 推荐(0) 编辑
摘要: LeetCode 844. Backspace String Compare (比较含退格的字符串) 题目 链接 https://leetcode-cn.com/problems/backspace-string-compare/ 问题描述 给定 s 和 t 两个字符串,当它们分别被输入到空白的文本 阅读全文
posted @ 2022-04-28 19:55 cheng102e 阅读(20) 评论(0) 推荐(0) 编辑
摘要: LeetCode 852. Peak Index in a Mountain Array (山脉数组的峰顶索引) 题目 链接 https://leetcode-cn.com/problems/peak-index-in-a-mountain-array/ 问题描述 符合下列属性的数组 arr 称为 阅读全文
posted @ 2022-04-25 09:16 cheng102e 阅读(17) 评论(0) 推荐(0) 编辑
摘要: LeetCode 367. Valid Perfect Square (有效的完全平方数) 题目 链接 https://leetcode-cn.com/problems/valid-perfect-square/ 问题描述 给定一个 正整数 num ,编写一个函数,如果 num 是一个完全平方数,则 阅读全文
posted @ 2022-04-25 08:41 cheng102e 阅读(15) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 44 下一页