题目描述:
LeetCode 399. Evaluate Division
p> Equations are given in the format A / B = k
, where A
and B
are variables represented as strings, and k
is a real number (floating point number). Given some queries, return the answers. If ...
最后更新于 .
LeetCode 399. Evaluate Division
p> Equations are given in the format A / B = k
, where A
and B
are variables represented as strings, and k
is a real number (floating point number). Given some queries, return the answers. If ...
最后更新于 .
LeetCode 398. Random Pick Index
Given an array of integers with possible duplicates, randomly output the index of a given target number. You can assume that the given target number must exist in the array.
Note:
The array size ...
最后更新于 .
LeetCode 397. Integer Replacement
Given a positive integer n and you can do operations as follow:
n/2
.n + 1
or n ...
最后更新于 .
Given an array of integers A
and let n to be its length.
Assume Bk
to be an array obtained by rotating the array A
k positions clock-wise, we define a "rotation function" F ...
最后更新于 .
Given a collection of distinct numbers, return all possible permutations.
For example,
[1,2,3]
have the following permutations:
[ [1,2,3], [1,3,2], [2,1,3], [2,3,1], [3,1,2], [3,2 ...