DEV Community

Discussion on: Learning Algorithms with JS, Python and Java 7: Anagrams

Collapse
 
stevenbrown163 profile image
Steven Brown

Nice thing about this method, you can use modulus to check if a string is a substring of another (“apple” to “applesauce”).

Thread Thread
 
kepta profile image
Kushan Joshi

That might give false positive for jumbled words, for example paple would pass the modulous check.