Given an array `A` of integers, for each integer `A[i]` we need to choose either `x = -K` or `x = K`, and add `x` to `A[i] (only once)`. After ...
Given an array A of integers, for each integer A i we may choose any x with K lt x lt K , and add x to A i . After this process, we have some arrayB. Return the smallest possible difference between t ...
2019-08-07 22:20 0 1011 推荐指数:
Given an array `A` of integers, for each integer `A[i]` we need to choose either `x = -K` or `x = K`, and add `x` to `A[i] (only once)`. After ...
You have k lists of sorted integers in ascending order. Find the smallest range that includes at least one number from each of the k lists. We ...
the smallest good base of n in string format. Example 1: ...
In a project, you have a list of required skills req_skills, and a list of people. The ith person people[i] contains a list of skills ...
Given an integer array nums, return the number of range sums that lie in [lower, upper] inclusive.Range sum S(i, j) is defined as the sum ...
An image is represented by a binary matrix with 0 as a white pixel and 1 as a black pixel. The black pixels are connected, i.e., there is only one ...
Given a list of sorted characters letters containing only lowercase letters, and given a target letter target, find the smallest element ...
Given a positive integer K, you need to find the length of the smallest positive integer N such that N is divisible by K, and N only contains ...