Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 504 Bytes

File metadata and controls

32 lines (22 loc) · 504 Bytes

整数转换英文表示

难度:困难

https://leetcode-cn.com/problems/integer-to-english-words/

题目

将非负整数 num 转换为其对应的英文表示。

示例

示例 1:

输入:num = 123
输出:"One Hundred Twenty Three"

示例 2:

输入:num = 12345
输出:"Twelve Thousand Three Hundred Forty Five"

示例 3:

输入:num = 1234567
输出:"One Million Two Hundred Thirty Four Thousand Five Hundred Sixty Seven"