wrong prgram. the code isnt efficient. gonna post the correct code in c++ in the evening.if i give abbbbbcccaaabc it cuts it down to abcabc but not abc. check this plz.
 
if im not wrong this is a code4bill round3 prob.
sagar

 
On 2/23/06, suresh_chowta <[EMAIL PROTECTED]> wrote:

{
       int i=0, j=0;
       scanf("%s", string);
       while( string[++j] )
               if(string[i] != string[j]) string[++i] = string[j];

--~--~---------~--~----~------------~-------~--~----~
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.google.com/group/algogeeks
-~----------~----~----~----~------~----~------~--~---

Reply via email to