Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • 1
    \$\begingroup\$ I can see you've prepared this solution when it was still in the Sandbox, based on the . in the Mr. Anderson test case. I removed it when I just posted it to main, since I mentioned in the rules the input will only contain letters and space. ;) But well done. Looking forward to that explanation. \$\endgroup\$ Commented Jul 23, 2020 at 10:26
  • 1
    \$\begingroup\$ @KevinCruijssen Hah! I did spot it and played with it last night :P I Hope others enjoy this. I tried a few different attempts to get and but ended up with the slightly less interesting variant, but was fun experimenting with ways to make it. \$\endgroup\$ Commented Jul 23, 2020 at 10:30