660. 移除9
- 题号:660
- 来源:LeetCode
- 难度:困难
- 标签:
数学 - 语言:TypeScript
- 解法:1 个
- 作者:lmliheng
- 最近更新:2026-09-27
TypeScript · O(log n) 时间 · O(log n) 空间 · 更新于 2026-09-27
第n个不含9的数是n的九进制写法
typescript
/**
* @difficulty hard
* @tags 数学
* @time O(log n)
* @space O(log n)
* @note 第n个不含9的数是n的九进制写法
* @660. 移除9
*/
let num=21
console.log(num.toString(9))在 GitHub 上查看题目所在目录:lmliheng/algorithm