Community

Start a Thread


Notifications
Subscribe You’re not receiving notifications from this thread.

Convert Number To Words (Main Thread)

Here is the interview question prompt, presented for reference.

Can you convert a number to its text equivalent? This is otherwise known as number spelling.

For example, given 1234, we expect to get "one thousand two hundred and thirty four" back.

Constraints

  • The given number will have <= 100 digits
  • Let n be the number of digits
  • Expected time complexity : O(n)
  • Expected space complexity : O(n)

You can see the full challenge with visuals at this link.

Challenges • Asked over 4 years ago by Anonymous

Jake from AlgoDaily Commented on Oct 31, 2019:

This is the main discussion thread generated for Convert Number To Words.

Anonymous Commented on Oct 31, 2019:

[deleted]