Validation for incorrect inputs


My solution is pretty similar, so I feel quite happy.

I didn't think to add validation for incorrect inputs, so your solution was a great learning point. Interviewers do seem to appreciate code that can catch errors, so will remember to keep this tip in mind.

[Challenge] Anagram Detector
[Challenge] Anagram Detector

I've struggled through trying to get an exception that works. The type check was my way around raising exceptions I didn't want.