08 2022 档案
摘要:原题链接在这里:https://leetcode.com/problems/find-nearest-point-that-has-the-same-x-or-y-coordinate/ 题目: You are given two integers, x and y, which represent
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/k-similar-strings/ 题目: Strings s1 and s2 are k-similar (for some non-negative integer k) if we can swap the posi
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/maximum-path-quality-of-a-graph/ 题目: There is an undirected graph with n nodes numbered from 0 to n - 1 (inclusi
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/minimum-number-of-steps-to-make-two-strings-anagram-ii/ 题目: You are given two strings s and t. In one step, you
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/minimum-number-of-steps-to-make-two-strings-anagram/ 题目: You are given two strings of the same length s and t. I
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/buddy-strings/ 题目: Given two strings s and goal, return true if you can swap two letters in s so the result is e
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/design-file-system/ 题目: You are asked to design a file system that allows you to create new paths and associate
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/subdomain-visit-count/ 题目: A website domain "discuss.leetcode.com" consists of various subdomains. At the top le
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/design-browser-history/ 题目: You have a browser of one tab where you start on the homepage and you can visit anot
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/step-by-step-directions-from-a-binary-tree-node-to-another/ 题目: You are given the root of a binary tree with n n
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/find-distance-in-a-binary-tree/ 题目: Given the root of a binary tree and two integers p and q, return the distanc
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/sum-of-total-strength-of-wizards/ 题目: As the ruler of a kingdom, you have an army of wizards at your command. Yo
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/maximum-units-on-a-truck/ 题目: You are assigned to put some amount of boxes onto one truck. You are given a 2D ar
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/maximum-length-of-subarray-with-positive-product/ 题目: Given an array of integers nums, find the maximum length o
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/longest-duplicate-substring/ 题目: Given a string s, consider all duplicated substrings: (contiguous) substrings o
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/finding-3-digit-even-numbers/ 题目: You are given an integer array digits, where each element is a digit. The arra
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/smallest-rotation-with-highest-score/ 题目: You are given an array nums. You can rotate it by a non-negative integ
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/maximum-frequency-stack/ 题目: Design a stack-like data structure to push elements to the stack and pop the most f
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/frequency-of-the-most-frequent-element/ 题目: The frequency of an element is the number of times it occurs in an a
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/construct-k-palindrome-strings/ 题目: Given a string s and an integer k, return true if you can use all the charac
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/maximum-of-minimum-values-in-all-subarrays/ 题目: You are given an integer array nums of size n. You are asked to
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/minimum-time-to-complete-trips/ 题目: You are given an array time where time[i] denotes the time taken by the ith
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/longest-continuous-subarray-with-absolute-diff-less-than-or-equal-to-limit/ 题目: Given an array of integers nums
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/optimal-account-balancing/ 题目: You are given an array of transactions transactions where transactions[i] = [from
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/leftmost-column-with-at-least-a-one/ 题目: A row-sorted binary matrix means that all elements are 0 or 1 and each
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/next-palindrome-using-same-digits/ 题目: ou are given a numeric string num, representing a very large palindrome.
阅读全文