DEV Community

Discussion on: IsAnagram? - Quick Hack

Collapse
 
hammertoe profile image
Matt Hamilton

Using a set operator though you will remove duplicate letters. Which will give you some false positives.

Collapse
 
shyams1993 profile image
Shyam Salil

Yup, made the edits :) Thank you! Might have never noticed the loop if it weren't for these comments.