Class Solution
java.lang.Object
g0201_0300.s0273_integer_to_english_words.Solution
273 - Integer to English Words.<p>Hard</p>
<p>Convert a non-negative integer <code>num</code> to its English words representation.</p>
<p><strong>Example 1:</strong></p>
<p><strong>Input:</strong> num = 123</p>
<p><strong>Output:</strong> “One Hundred Twenty Three”</p>
<p><strong>Example 2:</strong></p>
<p><strong>Input:</strong> num = 12345</p>
<p><strong>Output:</strong> “Twelve Thousand Three Hundred Forty Five”</p>
<p><strong>Example 3:</strong></p>
<p><strong>Input:</strong> num = 1234567</p>
<p><strong>Output:</strong> “One Million Two Hundred Thirty Four Thousand Five Hundred Sixty Seven”</p>
<p><strong>Example 4:</strong></p>
<p><strong>Input:</strong> num = 1234567891</p>
<p><strong>Output:</strong> “One Billion Two Hundred Thirty Four Million Five Hundred Sixty Seven Thousand Eight Hundred Ninety One”</p>
<p><strong>Constraints:</strong></p>
<ul>
<li><code>0 <= num <= 2<sup>31</sup> - 1</code></li>
</ul>
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Solution
public Solution()
-
-
Method Details
-
numberToWords
-