On Sun, Jun 20, 2010 at 6:34 PM, debajyotisarma <[email protected]>wrote:
> How to device an algorithm for converting the number given in words to > an int? > Eg: > i/p : ninety thousand two hundred fourth three > o/p: 90243 > > even the number can be very big ... in million or billion ... > Here i/p should be read from left to right word by word.Each keyword and its value must be stored prehand 1-1 mapping.eg. ninety=90 ,thousand =1000 and all these keyword values are multiplied and added(90*1000+2*100+43=90243) and number is generated. > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<algogeeks%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > > -- Thanks & Regards Nikhil Agarwal Senior Undergraduate Computer Science & Engineering, National Institute Of Technology, Durgapur,India http://tech-nikk.blogspot.com http://beta.freshersworld.com/communities/nitd -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
