题目:将非负整数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”
示例4:
输入:num = 1234567891
输出:“One Billion Two Hundred Thirty Four Million Five Hundred Sixty Seven Thousand Eight Hundred Ninety One”
提示:
0 <= num <= 2^31 - 1
1. 思考
整数英文的转换规则是每三位数为一组,比如1234567。
对每一组