DEV Community

Discussion on: Write a script to identify an anagram

Collapse
 
ben profile image
Ben Halpern

Wouldn't "hello" and "hellooo" be a false positive here? I like the feel of this approach though.

Collapse
 
rpalo profile image
Ryan Palo

Oh, good point. This is probably better suited to a “find the one unique letter” type problem. I like the solution that uses ‘uniq’ the best so far, I think.