Making hamming distance return common letters is a slick way to go. I was looking at the duplication between the hamming distance and common letters functionality in my solution and was a little bummed about it, but I couldn't figure out a good way to do it.
I like this!
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.