摘要: LeetCode解题思路汇总(loading......) 做个记录啦📝 4 Hard Median of Two Sorted Arrays 10 Hard Regular Expression Matching 221 Medium Maximal Square 222 Medium Coun 阅读全文
posted @ 2021-09-30 03:23 夭夭夭夭夭桃子 阅读(109) 评论(0) 推荐(0)
摘要: 题目描述 LeetCode原题链接:2281. Sum of Total Strength of Wizards As the ruler of a kingdom, you have an army of wizards at your command. You are given a 0-ind 阅读全文
posted @ 2022-06-17 14:07 夭夭夭夭夭桃子 阅读(287) 评论(0) 推荐(0)
摘要: 题目描述 LeetCode原题链接:828. Count Unique Characters of All Substrings of a Given String Let's define a function countUniqueChars(s) that returns the number 阅读全文
posted @ 2022-06-04 00:29 夭夭夭夭夭桃子 阅读(47) 评论(0) 推荐(0)
摘要: 题目描述 LeetCode原题链接:818. Race Car Your car starts at position 0 and speed +1 on an infinite number line. Your car can go into negative positions. Your c 阅读全文
posted @ 2022-05-17 05:29 夭夭夭夭夭桃子 阅读(137) 评论(0) 推荐(0)
摘要: 题目描述 LeetCode原题链接:373. Find K Pairs with Smallest Sums You are given two integer arrays nums1 and nums2 sorted in ascending order and an integer k. De 阅读全文
posted @ 2022-03-25 08:51 夭夭夭夭夭桃子 阅读(48) 评论(0) 推荐(0)
摘要: 题目描述 LeetCode原题链接:1621. Number of Sets of K Non-Overlapping Line Segments Given n points on a 1-D plane, where the ith point (from 0 to n-1) is at x = 阅读全文
posted @ 2022-02-27 06:06 夭夭夭夭夭桃子 阅读(83) 评论(0) 推荐(0)
摘要: 题目描述 LeetCode原题链接:395. Longest Substring with At Least K Repeating Characters Given a string s and an integer k, return the length of the longest subs 阅读全文
posted @ 2022-02-14 15:21 夭夭夭夭夭桃子 阅读(72) 评论(0) 推荐(0)
摘要: 题目描述 LeetCode原题链接:410. Split Array Largest Sum Given an array nums which consists of non-negative integers and an integer m, you can split the array i 阅读全文
posted @ 2022-01-28 10:26 夭夭夭夭夭桃子 阅读(72) 评论(0) 推荐(0)
摘要: 题目描述 LeetCode原题链接:1262. Greatest Sum Divisible by Three Given an array nums of integers, we need to find the maximum possible sum of elements of the a 阅读全文
posted @ 2022-01-04 02:52 夭夭夭夭夭桃子 阅读(64) 评论(0) 推荐(0)
摘要: 题目描述 LeetCode原题链接:1320. Minimum Distance to Type a Word Using Two Fingers You have a keyboard layout as shown above in the X-Y plane, where each Engli 阅读全文
posted @ 2021-10-11 01:11 夭夭夭夭夭桃子 阅读(118) 评论(0) 推荐(0)
摘要: 题目描述 LeetCode原题链接:642. Design Search Autocomplete System Design a search autocomplete system for a search engine. Users may input a sentence (at least 阅读全文
posted @ 2021-10-01 08:27 夭夭夭夭夭桃子 阅读(70) 评论(0) 推荐(0)