We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Storing the entire string after every alteration seems redunant, wouldn't it be better to store just the altered part with a flag variable denoting the type of operation last performed?
Simple Text Editor
You are viewing a single comment's thread. Return to all comments →
Storing the entire string after every alteration seems redunant, wouldn't it be better to store just the altered part with a flag variable denoting the type of operation last performed?
Here is my accepted code in python3.