Integer to English Words
Convert a non-negative integer to its english words representation. Given input is guaranteed to be less than 2^31 - 1.
(读数值)
Example:
1. 哈希表
1 | class Solution: |
另一种更简洁的方法如下:
1 | num_mapping = { |
Convert a non-negative integer to its english words representation. Given input is guaranteed to be less than 2^31 - 1.
(读数值)
Example:
1 | class Solution: |
另一种更简洁的方法如下:
1 | num_mapping = { |