10 2022 档案
摘要:原题链接在这里:https://leetcode.com/problems/height-of-binary-tree-after-subtree-removal-queries/ 题目: You are given the root of a binary tree with n nodes. E
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/count-number-of-nice-subarrays/ 题目: Given an array of integers nums and an integer k. A continuous subarray is c
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/shortest-path-to-get-food/ 题目: You are starving and you want to eat food as quickly as possible. You want to fin
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/ 题目: Given an integer array nums and two integers left and right, retur
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/count-subarrays-with-fixed-bounds/ 题目: You are given an integer array nums and two integers minK and maxK. A fix
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/print-in-order/ 题目: Suppose we have a class: public class Foo { public void first() { print("first"); } public v
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/print-foobar-alternately/ 题目: Suppose you are given the following code: class FooBar { public void foo() { for (
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/the-dining-philosophers/ 题目: Five silent philosophers sit at a round table with bowls of spaghetti. Forks are pl
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/print-zero-even-odd/ 题目: You have a function printNumber that can be called with an integer parameter and prints
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/fizz-buzz-multithreaded/ 题目: You have the four functions: printFizz that prints the word "fizz" to the console,
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/using-a-robot-to-print-the-lexicographically-smallest-string/ 题目: You are given a string s and a robot that curr
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/number-of-matching-subsequences/ 题目: Given a string s and an array of strings words, return the number of words[
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/minimum-number-of-frogs-croaking/ 题目: You are given the string croakOfFrogs, which represents a combination of t
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/linked-list-in-binary-tree/ 题目: Given a binary tree root and a linked list with head as the first node. Return T
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/max-sum-of-rectangle-no-larger-than-k/ 题目: Given an m x n matrix matrix and an integer k, return the max sum of
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/task-scheduler-ii/ 题目: You are given a 0-indexed array of positive integers tasks, representing tasks that need
阅读全文