加载中...
分类详情
简单 分类
598-范围求和 II(Range Addition II)
原文链接: https://leetcode-cn.com/problems/range-addition-ii 英文原文You are given an m x n matrix M initialized with all 0's and an array of operations ops, where ops[i] = [ai, bi] means M[x][y] should be incremented by one for all 0 <= x < ai and 0 <= y < …
2021-12-03
605-种花问题(Can Place Flowers)
原文链接: https://leetcode-cn.com/problems/can-place-flowers 英文原文You have a long flowerbed in which some of the plots are planted, and some are not. However, flowers cannot be planted in adjacent plots. Given an integer array flowerbed containing 0's and…
2021-12-03
620-有趣的电影(Not Boring Movies)
原文链接: https://leetcode-cn.com/problems/not-boring-movies 英文原文Table: Cinema +----------------+----------+ | Column Name | Type | +----------------+----------+ | id | int | | movie | varchar | | description | varchar | | rating | float | +-------------…
2021-12-03
627-变更性别(Swap Salary)
原文链接: https://leetcode-cn.com/problems/swap-salary 英文原文Table: Salary +-------------+----------+ | Column Name | Type | +-------------+----------+ | id | int | | name | varchar | | sex | ENUM | | salary | int | +-------------+----------+ id is the pri…
2021-12-03
661-图片平滑器(Image Smoother)
原文链接: https://leetcode-cn.com/problems/image-smoother 英文原文An image smoother is a filter of the size 3 x 3 that can be applied to each cell of an image by rounding down the average of the cell and the eight surrounding cells (i.e., the average of the …
2021-12-03
697-数组的度(Degree of an Array)
原文链接: https://leetcode-cn.com/problems/degree-of-an-array 英文原文Given a non-empty array of non-negative integers nums, the degree of this array is defined as the maximum frequency of any one of its elements. Your task is to find the smallest possible l…
2021-12-03
717-1比特与2比特字符(1-bit and 2-bit Characters)
原文链接: https://leetcode-cn.com/problems/1-bit-and-2-bit-characters 英文原文We have two special characters: The first character can be represented by one bit 0. The second character can be represented by two bits (10 or 11). Given a binary array bits that …
2021-12-03
728-自除数(Self Dividing Numbers)
原文链接: https://leetcode-cn.com/problems/self-dividing-numbers 英文原文A self-dividing number is a number that is divisible by every digit it contains. For example, 128 is a self-dividing number because 128 % 1 == 0, 128 % 2 == 0, and 128 % 8 == 0. A self-…
2021-12-03