Skip to main content
LeetCode 273, Hard. Topics: Math, String, Recursion. View on LeetCode. Generate this problem as a practice environment: tested reference solution, 32 parametrized pytest cases, and a playground notebook:

Problem

Convert a non-negative integer num to its English words representation.

Examples

Constraints

  • 0 <= num <= 2^31 - 1

Solution

Reference implementation from solution.py on GitHub, full suite in test_solution.py:

Complexity

Tags

NeetCode All.
Last modified on September 7, 2026