You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example, the power of `x = 3` is `7` because `3` needs `7` steps to become `1` (`3 --> 10 --> 5 --> 16 --> 8 --> 4 --> 2 --> 1`).
15
+
请你返回区间 `[lo, hi]` 之间的整数按权重排序后的第 `k` 个数。
14
16
15
-
Given three integers `lo`, `hi` and `k`. The task is to sort all integers in the interval `[lo, hi]` by the power value in *ascending order*, if two or more integers have *the same* power value sort them by *ascending order*.
Return the `k^th^` integer in the range `[lo, hi]` sorted by the power value.
19
+
*示例 1:*
18
20
19
-
Notice that for any integer `x``(lo <= x <= hi)` it is *guaranteed* that `x` will transform into `1` using these steps and that the power of `x` is will *fit* in a 32-bit signed integer.
0 commit comments