If its C/C++, the program is as simple as

cin >> num;
char buf[20];
sprintf(buf,"%d",num);
int i = 0;
while(s[i] == '0' && s[i + 1] != '\0')
  i++;
len = strlen(buf) -1;
while(len >= i)
  cout << s[len];
cout << endl;


On 4/13/06, adak <[EMAIL PROTECTED]> wrote:

I agree with you (although it can be difficult if you choose a tough
algo), but since he posted for help, wouldn't it be nice to give him a
bit of guidance?

I'm not saying do his whole assignment for him, but a starting point.

Adak






--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to