随笔分类 -  LeetCode

上一页 1 ··· 5 6 7 8 9
摘要:LeetCode 0392. Is Subsequence判断子序列【Easy】【Python】【双指针】 Problem "LeetCode" Given a string s and a string t , check if s is subsequence of t . You may as 阅读全文
posted @ 2020-02-20 12:39 Wonz 阅读(210) 评论(0) 推荐(0)
摘要:LeetCode 0605. Can Place Flowers种花问题【Easy】【Python】【贪心】 Problem "LeetCode" Suppose you have a long flowerbed in which some of the plots are planted and 阅读全文
posted @ 2020-02-20 10:55 Wonz 阅读(207) 评论(0) 推荐(0)
摘要:LeetCode 0122. Best Time to Buy and Sell Stock II买卖股票的最佳时机 II【Easy】【Python】【贪心】【动态规划】 Problem "LeetCode" Say you have an array for which the i th elem 阅读全文
posted @ 2020-02-20 09:48 Wonz 阅读(110) 评论(0) 推荐(0)
摘要:LeetCode 0121. Best Time to Buy and Sell Stock买卖股票的最佳时机【Easy】【Python】【贪心】【动态规划】 Problem "LeetCode" Say you have an array for which the i th element is 阅读全文
posted @ 2020-02-19 22:59 Wonz 阅读(120) 评论(0) 推荐(0)
摘要:LeetCode 0406. Queue Reconstruction by Height根据身高重建队列【Medium】【Python】【贪心】 Problem "LeetCode" Suppose you have a random list of people standing in a qu 阅读全文
posted @ 2020-02-16 22:08 Wonz 阅读(157) 评论(0) 推荐(0)
摘要:LeetCode 0435. Non overlapping Intervals无重叠区间【Medium】【Python】【区间贪心】 Problem "LeetCode" Given a collection of intervals, find the minimum number of int 阅读全文
posted @ 2020-02-16 20:57 Wonz 阅读(253) 评论(0) 推荐(0)
摘要:LeetCode 0452. Minimum Number of Arrows to Burst Balloons用最少数量的箭引爆气球【Medium】【Python】【区间贪心】 Problem "LeetCode" There are a number of spherical balloons 阅读全文
posted @ 2020-02-16 20:07 Wonz 阅读(144) 评论(0) 推荐(0)
摘要:LeetCode 0455. Assign Cookies分发饼干【Easy】【Python】【贪心】 Problem "LeetCode" Assume you are an awesome parent and want to give your children some cookies. B 阅读全文
posted @ 2020-02-15 20:05 Wonz 阅读(179) 评论(0) 推荐(0)
摘要:LeetCode 0075. Sort Colors颜色分类【Medium】【Python】【荷兰旗】 Problem "LeetCode" Given an array with n objects colored red, white or blue, sort them in place so 阅读全文
posted @ 2020-02-15 19:31 Wonz 阅读(160) 评论(0) 推荐(0)
摘要:LeetCode 0451. Sort Characters By Frequency根据字符出现频率排序【Medium】【Python】【桶排序】 Problem "LeetCode" Given a string, sort it in decreasing order based on the 阅读全文
posted @ 2020-02-15 16:39 Wonz 阅读(382) 评论(0) 推荐(0)
摘要:LeetCode 0347. Top K Frequent Elements前 K 个高频元素【Medium】【Python】【桶排序】 Problem "LeetCode" Given a non empty array of integers, return the k most frequen 阅读全文
posted @ 2020-02-14 22:45 Wonz 阅读(361) 评论(0) 推荐(0)
摘要:LeetCode 0215. Kth Largest Element in an Array数组中的第K个最大元素【Medium】【Python】【快排】【堆】 Problem "LeetCode" Find the k th largest element in an unsorted array 阅读全文
posted @ 2020-02-14 21:32 Wonz 阅读(180) 评论(0) 推荐(0)
摘要:LeetCode 0524. Longest Word in Dictionary through Deleting通过删除字母匹配到字典里最长单词【Medium】【Python】【双指针】 题目 "英文题目地址" Given a string and a string dictionary, fi 阅读全文
posted @ 2020-02-14 16:28 Wonz 阅读(295) 评论(0) 推荐(0)
摘要:LeetCode 0141. Linked List Cycle环形链表【Easy】【Python】【双指针】 题目 "英文题目地址" Given a linked list, determine if it has a cycle in it. To represent a cycle in th 阅读全文
posted @ 2020-02-13 11:40 Wonz 阅读(132) 评论(0) 推荐(0)
摘要:LeetCode 0088. Merge Sorted Array合并两个有序数组【Easy】【Python】【双指针】 题目 "英文题目链接" Given two sorted integer arrays nums1 and nums2 , merge nums2 into nums1 as o 阅读全文
posted @ 2020-02-12 23:09 Wonz 阅读(166) 评论(0) 推荐(0)
摘要:LeetCode 0680. Valid Palindrome II验证回文字符串 Ⅱ【Easy】【Python】【双指针】 题目 "英文题目链接" Given a non empty string , you may delete at most one character. Judge whet 阅读全文
posted @ 2020-02-12 20:11 Wonz 阅读(137) 评论(0) 推荐(0)
摘要:LeetCode 0633. Sum of Square Numbers平方数之和【Easy】【Python】【双指针】 题目 "英文题目链接" Given a non negative integer , your task is to decide whether there're two in 阅读全文
posted @ 2020-02-12 10:55 Wonz 阅读(200) 评论(0) 推荐(0)
摘要:LeetCode 0167. Two Sum II Input array is sorted两数之和 II 输入有序数组【Easy】【Python】【双指针】 题目 "英文题目链接" Given an array of integers that is already sorted in asce 阅读全文
posted @ 2020-02-11 23:22 Wonz 阅读(139) 评论(0) 推荐(0)
摘要:LeetCode 0345. Reverse Vowels of a String反转字符串中的元音字母【Easy】【Python】【双指针】 题目 "英文题目链接" Write a function that takes a string as input and reverse only the 阅读全文
posted @ 2020-02-11 21:03 Wonz 阅读(182) 评论(0) 推荐(0)

上一页 1 ··· 5 6 7 8 9