加载中...
分类详情
中等 分类
1390-四因数(Four Divisors)
原文链接: https://leetcode-cn.com/problems/four-divisors 英文原文Given an integer array nums, return the sum of divisors of the integers in that array that have exactly four divisors. If there is no such integer in the array, return 0. Example 1: Input: nums…
2021-12-03
1201-丑数 III(Ugly Number III)
原文链接: https://leetcode-cn.com/problems/ugly-number-iii 英文原文An ugly number is a positive integer that is divisible by a, b, or c. Given four integers n, a, b, and c, return the nth ugly number. Example 1: Input: n = 3, a = 2, b = 3, c = 5 Output: 4 Ex…
2021-12-03
2079-给植物浇水(Watering Plants)
原文链接: https://leetcode-cn.com/problems/watering-plants 英文原文You want to water n plants in your garden with a watering can. The plants are arranged in a row and are labeled from 0 to n - 1 from left to right where the ith plant is located at x = i. The…
2021-12-03
1195-交替打印字符串(Fizz Buzz Multithreaded)
原文链接: https://leetcode-cn.com/problems/fizz-buzz-multithreaded 英文原文You have the four functions: printFizz that prints the word "Fizz" to the console, printBuzz that prints the word "Buzz" to the console, printFizzBuzz that prints the word "FizzBuzz" …
2021-12-03
1219-黄金矿工(Path with Maximum Gold)
原文链接: https://leetcode-cn.com/problems/path-with-maximum-gold 英文原文In a gold mine grid of size m x n, each cell in this mine has an integer representing the amount of gold in that cell, 0 if it is empty. Return the maximum amount of gold you can colle…
2021-12-03
1226-哲学家进餐(The Dining Philosophers)
原文链接: https://leetcode-cn.com/problems/the-dining-philosophers 英文原文Five silent philosophers sit at a round table with bowls of spaghetti. Forks are placed between each pair of adjacent philosophers. Each philosopher must alternately think and eat. Ho…
2021-12-03
1726-同积元组(Tuple with Same Product)
原文链接: https://leetcode-cn.com/problems/tuple-with-same-product 英文原文Given an array nums of distinct positive integers, return the number of tuples (a, b, c, d) such that a * b = c * d where a, b, c, and d are elements of nums, and a != b != c != d. Ex…
2021-12-03