摘要:
原题链接在这里:https://leetcode.com/problems/maximum-sum-circular-subarray/description/ 题目: Given a circular integer array nums of length n, return the maxim 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/merge-in-between-linked-lists/description/ 题目: You are given two linked lists: list1 and list2 of sizes n and m 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/number-of-even-and-odd-bits/description/ 题目: You are given a positive integer n. Let even denote the number of e 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/find-all-groups-of-farmland/description/ 题目: You are given a 0-indexed m x n binary matrix land where a 0 repres 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/find-common-elements-between-two-arrays/description/ 题目: You are given two 0-indexed integer arrays nums1 and nu 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/number-of-wonderful-substrings/description/ 题目: A wonderful string is a string where at most one letter appears 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/element-appearing-more-than-25-in-sorted-array/description/ 题目: Given an integer array sorted in non-decreasing 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/maximum-number-of-intersections-on-the-chart/description/ 题目: There is a line chart consisting of n points conne 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/mice-and-cheese/description/ 题目: There are two mice and n different types of cheese, each type of cheese should 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/maximum-subarray-sum-with-one-deletion/description/ 题目: Given an array of integers, return the maximum sum for a 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/count-hills-and-valleys-in-an-array/description/ 题目: You are given a 0-indexed integer array nums. An index i is 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/check-if-an-original-string-exists-given-two-encoded-strings/description/ 题目: An original string, consisting of 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/the-number-of-beautiful-subsets/description/ 题目: You are given an array nums of positive integers and a positive 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/maximum-sum-bst-in-binary-tree/description/ 题目: Given a binary tree root, return the maximum sum of all keys of 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/jump-game-v/description/ 题目: Given an array of integers arr and an integer d. In one step you can jump from inde 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/rank-transform-of-an-array/description/ 题目: Given an array of integers arr, replace each element with its rank. 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/spiral-matrix-iv/description/ 题目: You are given two integers m and n, which represent the dimensions of a matrix 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/diagonal-traverse-ii/description/ 题目: Given a 2D integer array nums, return all elements of nums in diagonal ord 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/sum-of-nodes-with-even-valued-grandparent/description/ 题目: Given the root of a binary tree, return the sum of va 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/minimum-time-to-collect-all-apples-in-a-tree/description/ 题目: Given an undirected tree consisting of n vertices 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/number-of-visible-people-in-a-queue/description/ 题目: There are n people standing in a queue, and they numbered f 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/split-message-based-on-limit/description/ 题目: You are given a string, message, and a positive integer, limit. Yo 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/find-the-kth-smallest-sum-of-a-matrix-with-sorted-rows/description/ 题目: You are given an m x n matrix mat that h 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/minimum-number-of-days-to-make-m-bouquets/description/ 题目: You are given an integer array bloomDay, an integer m 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/cutting-ribbons/description/ 题目: You are given an integer array ribbons, where ribbons[i] represents the length 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/kth-missing-positive-number/description/ 题目: Given an array arr of positive integers sorted in a strictly increa 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/maximum-sum-of-distinct-subarrays-with-length-k/description/ 题目: You are given an integer array nums and an inte 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/number-of-substrings-containing-all-three-characters/description/ 题目: Given a string s consisting only of charac 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/sort-array-by-parity/description/ 题目: Given an integer array nums, move all the even integers at the beginning o 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/adding-spaces-to-a-string/description/ 题目: You are given a 0-indexed string s and a 0-indexed integer array spac 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/product-of-two-run-length-encoded-arrays/description/ 题目: Run-length encoding is a compression algorithm that al 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/making-a-large-island/description/ 题目: You are given an n x n binary matrix grid. You are allowed to change at m 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/shortest-path-in-a-hidden-grid/description/ 题目: This is an interactive problem. There is a robot in a hidden gri 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/sum-of-distances-in-tree/description/ 题目: There is an undirected connected tree with n nodes labeled from 0 to n 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/count-nodes-equal-to-average-of-subtree/description/ 题目: Given the root of a binary tree, return the number of n 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/maximum-level-sum-of-a-binary-tree/description/ 题目: Given the root of a binary tree, the level of its root is 1, 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/description/ 题目: We run a preorder depth-first search (DFS) on the root o 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/print-immutable-linked-list-in-reverse/description/题目: You are given an immutable linked list, print out all val 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/design-skiplist/description/ 题目: Design a Skiplist without using any built-in libraries. A skiplist is a data st 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/dot-product-of-two-sparse-vectors/description/ 题目: Given two sparse vectors, compute their dot product. Implemen 阅读全文