Nov-16-2022, 06:36 PM
Number: positive, up to billion (10 digits)
Example 1:
Input : I bought twenty three packs of bread
Output : I bought 23 packs of bread
Example 2:
Input : four billion five hundred sixty seven million eight hundred ninety thousand one hundred and twenty three
Output: 4567890123
Do you have any solutions for this problem? I'm getting stuck.
Example 1:
Input : I bought twenty three packs of bread
Output : I bought 23 packs of bread
Example 2:
Input : four billion five hundred sixty seven million eight hundred ninety thousand one hundred and twenty three
Output: 4567890123
Do you have any solutions for this problem? I'm getting stuck.