Hello! While reading through the solution of Photoshoot for Bronze, I noticed a typo!
“”
Consider replacing every length-two substring of the input string with
- . if the two characters are equal
- A if the substring is GH
- B if the substring is HG
For example, the sample input would be transformed as follows:
GG|GH|GH|HG|HH|HG|HG → .BBA.AA
“”
If you look carefully, you’ll notice that the A and B should be swapped. The character A represents instances of HG in the modified string below but refers to GH above. If possible, please have this fixed.