摘要: https://leetcode.com/problems/path-sum-iii/ https://leetcode.com/problems/path-sum-iv/ https://leetcode.com/problems/maximum-product-of-three-numbers/ 阅读全文
posted @ 2020-01-05 10:23 Dylan_Java_NYC 阅读(235) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2018-09-04 04:29 Dylan_Java_NYC 阅读(85) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/maximum-candies-you-can-get-from-boxes/description/ 题目: You have n boxes labeled from 0 to n - 1. You are given 阅读全文
posted @ 2024-07-16 13:43 Dylan_Java_NYC 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/minimize-malware-spread-ii/description/ 题目: You are given a network of n nodes represented as an n x n adjacency 阅读全文
posted @ 2024-07-16 01:07 Dylan_Java_NYC 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/make-array-non-decreasing-or-non-increasing/description/ 题目: You are given a 0-indexed integer array nums. In on 阅读全文
posted @ 2024-07-15 23:38 Dylan_Java_NYC 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/number-of-good-leaf-nodes-pairs/description/ 题目: You are given the root of a binary tree and an integer distance 阅读全文
posted @ 2024-07-15 11:37 Dylan_Java_NYC 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/valid-arrangement-of-pairs/description/ 题目: You are given a 0-indexed 2D integer array pairs where pairs[i] = [s 阅读全文
posted @ 2024-07-02 11:52 Dylan_Java_NYC 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/minimum-cost-to-hire-k-workers/description/ 题目: There are n workers. You are given two integer arrays quality an 阅读全文
posted @ 2024-07-02 11:03 Dylan_Java_NYC 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum/description/ 题目: Given an array of integers arr, return true if 阅读全文
posted @ 2024-07-01 12:00 Dylan_Java_NYC 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/plates-between-candles/description/ 题目: There is a long table with a line of plates and candles arranged on top 阅读全文
posted @ 2024-06-18 09:20 Dylan_Java_NYC 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/minimum-number-of-keypresses/description/ 题目: You have a keypad with 9 buttons, numbered from 1 to 9, each mappe 阅读全文
posted @ 2024-06-17 20:59 Dylan_Java_NYC 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/minimum-adjacent-swaps-to-make-a-valid-array/description/ 题目: You are given a 0-indexed integer array nums. Swap 阅读全文
posted @ 2024-06-17 13:49 Dylan_Java_NYC 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/length-of-the-longest-valid-substring/description/ 题目: You are given a string word and an array of strings forbi 阅读全文
posted @ 2024-06-17 13:34 Dylan_Java_NYC 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/sum-of-unique-elements/description/ 题目: You are given an integer array nums. The unique elements of an array are 阅读全文
posted @ 2024-06-04 11:54 Dylan_Java_NYC 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/optimize-water-distribution-in-a-village/description/ 题目: There are n houses in a village. We want to supply wat 阅读全文
posted @ 2024-06-03 12:58 Dylan_Java_NYC 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/longest-word-in-dictionary/description/ 题目: Given an array of strings words representing an English Dictionary, 阅读全文
posted @ 2024-06-03 12:50 Dylan_Java_NYC 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/make-two-arrays-equal-by-reversing-subarrays/description/ 题目: You are given two integer arrays of equal length t 阅读全文
posted @ 2024-06-02 23:54 Dylan_Java_NYC 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/number-of-ways-to-paint-n-3-grid/description/ 题目: You have a grid of size n x 3 and you want to paint each cell 阅读全文
posted @ 2024-06-02 23:44 Dylan_Java_NYC 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/all-elements-in-two-binary-search-trees/description/ 题目: Given two binary search trees root1 and root2, return a 阅读全文
posted @ 2024-06-01 13:11 Dylan_Java_NYC 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/sort-the-matrix-diagonally/description/ 题目: A matrix diagonal is a diagonal line of cells starting from some cel 阅读全文
posted @ 2024-05-29 10:49 Dylan_Java_NYC 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/maximum-number-of-events-that-can-be-attended/description/ 题目: You are given an array of events where events[i] 阅读全文
posted @ 2024-05-18 11:11 Dylan_Java_NYC 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/maximum-sum-circular-subarray/description/ 题目: Given a circular integer array nums of length n, return the maxim 阅读全文
posted @ 2024-05-17 10:40 Dylan_Java_NYC 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/merge-in-between-linked-lists/description/ 题目: You are given two linked lists: list1 and list2 of sizes n and m  阅读全文
posted @ 2024-05-16 11:45 Dylan_Java_NYC 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里: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 阅读全文
posted @ 2024-05-16 11:14 Dylan_Java_NYC 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里: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 阅读全文
posted @ 2024-05-15 12:15 Dylan_Java_NYC 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/find-common-elements-between-two-arrays/description/ 题目: You are given two 0-indexed integer arrays nums1 and nu 阅读全文
posted @ 2024-05-14 09:12 Dylan_Java_NYC 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/number-of-wonderful-substrings/description/ 题目: A wonderful string is a string where at most one letter appears 阅读全文
posted @ 2024-05-14 08:57 Dylan_Java_NYC 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/element-appearing-more-than-25-in-sorted-array/description/ 题目: Given an integer array sorted in non-decreasing 阅读全文
posted @ 2024-05-13 09:06 Dylan_Java_NYC 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/maximum-number-of-intersections-on-the-chart/description/ 题目: There is a line chart consisting of n points conne 阅读全文
posted @ 2024-05-13 08:57 Dylan_Java_NYC 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/mice-and-cheese/description/ 题目: There are two mice and n different types of cheese, each type of cheese should 阅读全文
posted @ 2024-05-13 07:03 Dylan_Java_NYC 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/maximum-subarray-sum-with-one-deletion/description/ 题目: Given an array of integers, return the maximum sum for a 阅读全文
posted @ 2024-05-09 12:37 Dylan_Java_NYC 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里: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 阅读全文
posted @ 2024-05-09 11:08 Dylan_Java_NYC 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/check-if-an-original-string-exists-given-two-encoded-strings/description/ 题目: An original string, consisting of 阅读全文
posted @ 2024-05-07 12:33 Dylan_Java_NYC 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/the-number-of-beautiful-subsets/description/ 题目: You are given an array nums of positive integers and a positive 阅读全文
posted @ 2024-05-06 11:15 Dylan_Java_NYC 阅读(51) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/maximum-sum-bst-in-binary-tree/description/ 题目: Given a binary tree root, return the maximum sum of all keys of  阅读全文
posted @ 2024-05-05 23:23 Dylan_Java_NYC 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里: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 阅读全文
posted @ 2024-04-22 00:59 Dylan_Java_NYC 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/rank-transform-of-an-array/description/ 题目: Given an array of integers arr, replace each element with its rank. 阅读全文
posted @ 2024-04-21 22:48 Dylan_Java_NYC 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/spiral-matrix-iv/description/ 题目: You are given two integers m and n, which represent the dimensions of a matrix 阅读全文
posted @ 2024-04-21 10:43 Dylan_Java_NYC 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/diagonal-traverse-ii/description/ 题目: Given a 2D integer array nums, return all elements of nums in diagonal ord 阅读全文
posted @ 2024-04-21 10:04 Dylan_Java_NYC 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/sum-of-nodes-with-even-valued-grandparent/description/ 题目: Given the root of a binary tree, return the sum of va 阅读全文
posted @ 2024-04-17 12:45 Dylan_Java_NYC 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/minimum-time-to-collect-all-apples-in-a-tree/description/ 题目: Given an undirected tree consisting of n vertices 阅读全文
posted @ 2024-04-15 10:29 Dylan_Java_NYC 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/number-of-visible-people-in-a-queue/description/ 题目: There are n people standing in a queue, and they numbered f 阅读全文
posted @ 2024-04-09 11:39 Dylan_Java_NYC 阅读(12) 评论(0) 推荐(0) 编辑