【Leetcode】1387. Sort Integers by The Power Value

题目地址: https://leetcode.com/problems/sort-integers-by-the-power-value/html 对于任意数字 x x x,若其是偶数则除以 2 2 2,不然乘以 3 3 3再加 1 1 1,通过若干步能够到 1 1 1,所花的步数成为 x x x的power。给定一个区间 [ l o , h i ] [lo,hi] [lo,hi],要求返回这个区
相关文章
相关标签/搜索