Saravana Kumar's

What matters

Answer to a Question(Numeric to Word)

Read a interview question to write an algorithm to convert entered numeric values to words (ex: 1—one ,2 – two) for up to six digits. Is it hard to convert ? No . We could do this in lot many ways but an effective program which uses proper data structure and algorithm that’s what it takes.

Here I got it

I had a dictionary to hold one and Tenths position words then rest lies in identifying the position of a numeric.

One of friend surpassed my limitation and he converted number till Quintillion I dont have idea how many digit has ? Awesome work chinmoy!!!