上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 57 下一页
摘要: 此博客链接: 图像渲染 题目链接:https://leetcode-cn.com/problems/flood-fill/ 题目 有一幅以二维整数数组表示的图画,每一个整数表示该图画的像素值大小,数值在 0 到 65535 之间。 给你一个坐标 (sr, sc) 表示图像渲染开始的像素值(行 ,列) 阅读全文
posted @ 2021-07-28 11:36 萍2樱释 阅读(41) 评论(0) 推荐(0)
摘要: ci博客链接: 合并两个链表 题目链接:https://leetcode-cn.com/problems/merge-two-sorted-lists/submissions/ 题目 将两个升序链表合并为一个新的 升序 链表并返回。新链表是通过拼接给定的两个链表的所有节点组成的。 示例 1: 输入: 阅读全文
posted @ 2021-07-28 09:59 萍2樱释 阅读(274) 评论(0) 推荐(0)
摘要: 此博客链接: 无重复字符的最长子串 题目链接:https://leetcode-cn.com/problems/longest-substring-without-repeating-characters/ 题目 给定一个字符串 s ,请你找出其中不含有重复字符的 最长子串 的长度。 示例 1: 输 阅读全文
posted @ 2021-07-27 22:23 萍2樱释 阅读(36) 评论(0) 推荐(0)
摘要: 此博客链接: 字符串的排列 题目链接:https://leetcode-cn.com/problems/permutation-in-string/ 题目 给定两个字符串 s1 和 s2,写一个函数来判断 s2 是否包含 s1 的排列。 换句话说,第一个字符串的排列之一是第二个字符串的 子串 。 示 阅读全文
posted @ 2021-07-27 21:38 萍2樱释 阅读(99) 评论(0) 推荐(0)
摘要: 此博客链接; 删除链表中的节点 题目链接:https://leetcode-cn.com/problems/remove-nth-node-from-end-of-list/ 题目 给你一个链表,删除链表的倒数第 n 个结点,并且返回链表的头结点。 进阶:你能尝试使用一趟扫描实现吗? 示例 1: 输 阅读全文
posted @ 2021-07-27 12:00 萍2樱释 阅读(44) 评论(0) 推荐(0)
摘要: 此博客链接: 题目链接: 题目 给定一个头结点为 head 的非空单链表,返回链表的中间结点。 如果有两个中间结点,则返回第二个中间结点。 示例 1: 输入:[1,2,3,4,5]输出:此列表中的结点 3 (序列化形式:[3,4,5])返回的结点值为 3 。 (测评系统对该结点序列化表述是 [3,4 阅读全文
posted @ 2021-07-25 23:35 萍2樱释 阅读(54) 评论(0) 推荐(0)
摘要: 此博客链接: 两数之和 题目链接:https://leetcode-cn.com/problems/two-sum-ii-input-array-is-sorted/submissions/ 题目 给定一个已按照 升序排列 的整数数组 numbers ,请你从数组中找出两个数满足相加之和等于目标数  阅读全文
posted @ 2021-07-24 22:39 萍2樱释 阅读(110) 评论(0) 推荐(0)
摘要: 此博客链接: 移动零 题目链接:https://leetcode-cn.com/problems/move-zeroes/submissions/ 题目 给定一个数组 nums,编写一个函数将所有 0 移动到数组的末尾,同时保持非零元素的相对顺序。 示例: 输入: [0,1,0,3,12]输出: [ 阅读全文
posted @ 2021-07-23 14:44 萍2樱释 阅读(19) 评论(0) 推荐(0)
摘要: class Solution { public void rotate(int[] nums, int k) { int len=nums.length; int res[]=new int[len]; for(int i=0;i<len;i++){ int index=(i+k)%len; res 阅读全文
posted @ 2021-07-22 11:57 萍2樱释 阅读(28) 评论(0) 推荐(0)
摘要: 此博客链接: 有序数组的平方 题链链接:https://leetcode-cn.com/problems/squares-of-a-sorted-array/ 题目 给你一个按 非递减顺序 排序的整数数组 nums,返回 每个数字的平方 组成的新数组,要求也按 非递减顺序 排序。 示例 1: 输入: 阅读全文
posted @ 2021-07-20 12:56 萍2樱释 阅读(64) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 57 下一页