Sally has a list of confusing sentences. She wants to paint a line of dots representing these sentences. Every unique letter will be a particular color. However, she does not want to paint the same color twice in a row. So when Sally sees two repeated letters together, she removes both of them. How many pairs of letters can Sally remove from each of these sentences?
The solution to this challenge is the product of answers for each sentences. Make sure to remove spaces, punctuation, and treat uppercase and lowercase letters as equal.
1. Through three cheese trees three free fleas flew. While these fleas flew, freezy breeze blew. Freezy breeze made these three trees freeze. Freezy trees made these trees’ cheese freeze. That’s what made these three free fleas sneeze.
2. I was just beginning to yawn with nerves thinking he was trying to make a fool of me when I knew his tattarrattat at the door.
3. Betty Botter bought some butter, but, she said, the butter’s bitter; if I put it in my batter it will make my batter bitter, but a bit of better butter will make my batter better. So she bought a bit of butter better than her bitter butter, and she put it in her batter and the batter was not bitter. So ’twas better Betty Botter bought a bit of better butter.
Example: For the string “abba" she can first remove the b dots, then remove the a dots. So the final answer is 2.
Krish Shah : 9323115454
Kaustubh Khavnekar : 9769408039