Given an integer, return its base 7 string representation. Example 1: Example 2: Note: The input will be in range of [-1e7, 1e7 ...
For an integer n, we call k gt agood baseof n, if all digits of n base k are . Now given a string representing n, you should return the smallest good base of n in string format. Example : Example : E ...
2017-03-26 06:08 3 5064 推荐指数:
Given an integer, return its base 7 string representation. Example 1: Example 2: Note: The input will be in range of [-1e7, 1e7 ...
Given an array `A` of integers, for each integer `A[i]` we need to choose either `x = -K` or `x = K ...
, we have some array B. Return the smallest possibl ...
In a project, you have a list of required skills req_skills, and a list of people. The ith person ...
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 ...
An image is represented by a binary matrix with 0 as a white pixel and 1 as a black pixel. The bl ...
Given a binary tree rooted at `root`, the *depth* of each node is the shortest distance to the root ...