i think a better algo...but can be used only in languages where there is provision of conversion of characters into ascii code... so algo is... set a variable counter to one 1.copy the string in a string variable 2.take its first & second character from left to right 3.if the ascii code of second character is less then first , delete the string 4.else move to third character in the string. 5. repeat steps 3 & 4 till the end of string 6. if the string ends replace the string in file by counter 7. Increment counter. 8 if end of file then exit else move to step1
if anybody thinks i am wrong plzz let me know --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups-beta.google.com/group/algogeeks -~----------~----~----~----~------~----~------~--~---