摘要: 此博客链接: 无重复字符的最长子串 题目链接:https://leetcode-cn.com/problems/longest-substring-without-repeating-characters/ 题目 给定一个字符串 s ,请你找出其中不含有重复字符的 最长子串 的长度。 示例 1: 输 阅读全文
posted @ 2021-07-27 22:23 萍2樱释 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 此博客链接: 字符串的排列 题目链接:https://leetcode-cn.com/problems/permutation-in-string/ 题目 给定两个字符串 s1 和 s2,写一个函数来判断 s2 是否包含 s1 的排列。 换句话说,第一个字符串的排列之一是第二个字符串的 子串 。 示 阅读全文
posted @ 2021-07-27 21:38 萍2樱释 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 此博客链接; 删除链表中的节点 题目链接:https://leetcode-cn.com/problems/remove-nth-node-from-end-of-list/ 题目 给你一个链表,删除链表的倒数第 n 个结点,并且返回链表的头结点。 进阶:你能尝试使用一趟扫描实现吗? 示例 1: 输 阅读全文
posted @ 2021-07-27 12:00 萍2樱释 阅读(36) 评论(0) 推荐(0) 编辑