Text to Number
Given a text as input, translate the text into its integer representation. The numbers can range from negative 999,999,999 to positive 999,999,999.Note that the word “hundred” is not used when “thousand” could be. E.g. 1500 is written “one thousand five hundred”, not “fifteen hundred”.
input data: negative six hundred thirty eight output: -638
View Java Solution
input data: two million one hundred seven output: 2000107