Given the following program, "MS" will be printed, infinite number of
times:
   int n = 20;
   int i;
   for (i=0; i<n; i--)
       printf("MS");

 Apply one of the following three operations one at a time such that
    "MS" can be printed 20 times.
    1. You can add only one character into it.
    2. you can delete only one character in it.
    3. You can replace a character by another character.

 Find all possible solutions for this problem.

-- 
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 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to