Feb-28-2024, 07:44 PM
If I understand correctly -
1. Create a class and move your shrink routine to that.
2. Change the shrink routine to record the location of each removed letter.
3. Create a function, expand, that puts the spaces into the string.
4. You will need to have the list that holds the removed positions as a class variable, and would have the result strings as class variables.
1. Create a class and move your shrink routine to that.
2. Change the shrink routine to record the location of each removed letter.
3. Create a function, expand, that puts the spaces into the string.
4. You will need to have the list that holds the removed positions as a class variable, and would have the result strings as class variables.