H E B interview question

Given an integer from 1 - 12 trillion, write a function that translates that integer into its English string. For example, 1 would return "one". 586 would return five hundred and eighty six.

Interview Answer

Anonymous

27 Feb 2020

Iterated through cases 1-20, then 1-99, then 1-infinity. This is considered a "hard" question on Leetcode. You can do an online search for the solution.

1