08 2024 档案
摘要:原题链接在这里: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
阅读全文