![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
双指针
Wonz
后端 -> 全栈 -> 后端
技术很菜,但一直在学习。
「人们会被自己热爱的事物改变」
展开
-
LeetCode | 0876. Middle of the Linked List链表的中间结点【Python】
LeetCode 0876. Middle of the Linked List链表的中间结点【Easy】【Python】【双指针】原创 2020-03-23 22:38:59 · 277 阅读 · 0 评论 -
LeetCode | 面试题 01.06. 字符串压缩【Python】
LeetCode 面试题 01.06. 字符串压缩【Easy】【Python】【双指针】原创 2020-03-16 22:36:21 · 499 阅读 · 0 评论 -
LeetCode | 1013. Partition Array Into Three Parts With Equal Sum将数组分成和相等的三个部分【Python】
LeetCode 1013. Partition Array Into Three Parts With Equal Sum将数组分成和相等的三个部分【Easy】【Python】【双指针】ProblemLeetCodeGiven an array A of integers, return true if and only if we can partition the array in...原创 2020-03-11 20:19:04 · 197 阅读 · 0 评论 -
LeetCode | 面试题 10.01. Sorted Merge LCCI【Python】
LeetCode 面试题 10.01. Sorted Merge LCCI【Easy】【Python】【双指针】问题力扣给定两个排序后的数组 A 和 B,其中 A 的末端有足够的缓冲空间容纳 B。 编写一个方法,将 B 合并入 A 并排序。初始化 A 和 B 的元素数量分别为 m 和 n。示例:输入:A = [1,2,3,0,0,0], m = 3B = [2,5,6], ...原创 2020-03-03 13:30:45 · 314 阅读 · 0 评论 -
LeetCode | 1358. Number of Substrings Containing All Three Characters包含所有三种字符的子字符串数目【Python】
LeetCode 1358. Number of Substrings Containing All Three Characters包含所有三种字符的子字符串数目【Medium】【Python】【双指针】【滑窗】ProblemLeetCodeGiven a string s consisting only of characters a, b and c.Return the num...原创 2020-02-23 10:27:35 · 521 阅读 · 0 评论 -
LeetCode | 0392. Is Subsequence判断子序列【Python】
LeetCode 0392. Is Subsequence判断子序列【Easy】【Python】【双指针】ProblemLeetCodeGiven a string s and a string t, check if s is subsequence of t.You may assume that there is only lower case English letters i...原创 2020-02-20 12:37:07 · 282 阅读 · 0 评论 -
LeetCode | 0524. Longest Word in Dictionary through Deleting通过删除字母匹配到字典里最长单词【Python】
LeetCode 0524. Longest Word in Dictionary through Deleting通过删除字母匹配到字典里最长单词【Medium】【Python】【双指针】题目英文题目地址Given a string and a string dictionary, find the longest string in the dictionary that can b...原创 2020-02-14 16:20:32 · 323 阅读 · 0 评论 -
LeetCode | 0141. Linked List Cycle环形链表【Python】
LeetCode 0141. Linked List Cycle环形链表【Easy】【Python】【双指针】题目Given a linked list, determine if it has a cycle in it.To represent a cycle in the given linked list, we use an integer pos which represen...原创 2020-02-13 11:36:21 · 262 阅读 · 0 评论 -
LeetCode | 0088. Merge Sorted Array合并两个有序数组【Python】
LeetCode 0088. Merge Sorted Array合并两个有序数组【Easy】【Python】【双指针】题目英文题目链接Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array.Note:The number of elements init...原创 2020-02-12 23:05:35 · 255 阅读 · 0 评论 -
LeetCode | 0680. Valid Palindrome II验证回文字符串 Ⅱ【Python】
LeetCode 0680. Valid Palindrome II验证回文字符串 Ⅱ【Easy】【Python】【双指针】题目英文题目链接Given a non-empty string s, you may delete at most one character. Judge whether you can make it a palindrome.Example 1:Inpu...原创 2020-02-12 20:07:00 · 313 阅读 · 0 评论 -
LeetCode | 0633. Sum of Square Numbers平方数之和【Python】
LeetCode 0633: Sum of Square Numbers平方数之和【Easy Python】题目英文题目链接Given a non-negative integer c, your task is to decide whether there’re two integers a and b such that a*a + b*b = c.Example 1:Inp...原创 2020-02-12 10:52:54 · 259 阅读 · 0 评论 -
LeetCode | 0167. Two Sum II - Input array is sorted两数之和 II - 输入有序数组【Python】
LeetCode 0167: Two Sum II - Input array is sorted【Python】题目英文题目链接Given an array of integers that is already *sorted in ascending order*, find two numbers such that they add up to a specific targe...原创 2020-02-11 23:19:00 · 268 阅读 · 0 评论 -
LeetCode | 0345. Reverse Vowels of a String反转字符串中的元音字母【Python】
LeetCode 0345: Reverse Vowels of a String【Python】题目英文题目链接Write a function that takes a string as input and reverse only the vowels of a string.Example 1:Input: "hello"Output: "holle"Example ...原创 2020-02-11 20:53:20 · 263 阅读 · 0 评论