摘要:
https://leetcode.com/problems/path-sum-iii/ https://leetcode.com/problems/path-sum-iv/ https://leetcode.com/problems/maximum-product-of-three-numbers/ 阅读全文
只有注册用户登录后才能阅读该文。 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/find-minimum-time-to-reach-last-room-i/description/ 题目: There is a dungeon with n x m rooms arranged as a grid. 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/find-the-longest-substring-containing-vowels-in-even-counts/description/ 题目: Given the string s, return the size 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/minimum-number-of-coins-to-be-added/description/ 题目: You are given a 0-indexed integer array coins, representing 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/count-nodes-with-the-highest-score/description/ 题目: There is a binary tree rooted at 0 consisting of n nodes. Th 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/maximum-performance-of-a-team/description/ 题目: You are given two integers n and k and two integer arrays speed a 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/count-all-valid-pickup-and-delivery-options/description/ 题目: Given n orders, each order consists of a pickup and 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/single-threaded-cpu/description/ 题目: You are given n tasks labeled from 0 to n - 1 represented by a 2D int 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/check-if-one-string-swap-can-make-strings-equal/description/ 题目: You are given two strings s1 and s2 of equal le 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/path-with-minimum-effort/description/ 题目: You are a hiker preparing for an upcoming hike. You are given heights, 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/sort-integers-by-the-power-value/description/ 题目: The power of an integer x is defined as the number of steps ne 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/shortest-uncommon-substring-in-an-array/description/ 题目: You are given an array arr of size n consisting of non- 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/simple-bank-system/description/ 题目: You have been tasked with writing a program for a popular bank that will aut 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/strings-differ-by-one-character/description/ 题目: Given a list of strings dict where all the strings are of the s 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/minimum-number-of-vertices-to-reach-all-nodes/description/ 题目: Given a directed acyclic graph, with n vertices n 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/minimum-number-of-flips-to-convert-binary-matrix-to-zero-matrix/description/ 题目: Given a m x n binary matrix mat 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/number-of-ways-to-build-house-of-cards/description/ 题目: You are given an integer n representing the number of pl 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/robot-bounded-in-circle/description/ 题目: On an infinite plane, a robot initially stands at (0, 0) and faces nort 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/convert-to-base-2/description/ 题目: Given an integer n, return a binary string representing its representation in 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/minimize-rounding-error-to-meet-target/description/ 题目: Given an array of prices [p1,p2...,pn] and a target, rou 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/pyramid-transition-matrix/description/ 题目: You are stacking blocks to form a pyramid. Each block has a color, wh 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/shortest-path-to-get-all-keys/description/ 题目: You are given an m x n grid grid where: '.' is an empty cell. '#' 阅读全文
摘要:
原题链接在这里: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 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/minimize-malware-spread-ii/description/ 题目: You are given a network of n nodes represented as an n x n adjacency 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/make-array-non-decreasing-or-non-increasing/description/ 题目: You are given a 0-indexed integer array nums. In on 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/number-of-good-leaf-nodes-pairs/description/ 题目: You are given the root of a binary tree and an integer distance 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/valid-arrangement-of-pairs/description/ 题目: You are given a 0-indexed 2D integer array pairs where pairs[i] = [s 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/minimum-cost-to-hire-k-workers/description/ 题目: There are n workers. You are given two integer arrays quality an 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum/description/ 题目: Given an array of integers arr, return true if 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/plates-between-candles/description/ 题目: There is a long table with a line of plates and candles arranged on top 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/minimum-number-of-keypresses/description/ 题目: You have a keypad with 9 buttons, numbered from 1 to 9, each mappe 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/minimum-adjacent-swaps-to-make-a-valid-array/description/ 题目: You are given a 0-indexed integer array nums. Swap 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/length-of-the-longest-valid-substring/description/ 题目: You are given a string word and an array of strings forbi 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/sum-of-unique-elements/description/ 题目: You are given an integer array nums. The unique elements of an array are 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/optimize-water-distribution-in-a-village/description/ 题目: There are n houses in a village. We want to supply wat 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/longest-word-in-dictionary/description/ 题目: Given an array of strings words representing an English Dictionary, 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/make-two-arrays-equal-by-reversing-subarrays/description/ 题目: You are given two integer arrays of equal length t 阅读全文
摘要:
原题链接在这里: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 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/all-elements-in-two-binary-search-trees/description/ 题目: Given two binary search trees root1 and root2, return a 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/sort-the-matrix-diagonally/description/ 题目: A matrix diagonal is a diagonal line of cells starting from some cel 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/maximum-number-of-events-that-can-be-attended/description/ 题目: You are given an array of events where events[i] 阅读全文