re: Write a script to identify an anagram VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Not super practical maybe, but using binary XOR is a sneaky way of checking for exact pairs of things (or finding an odd one out!). :) No sorting...
 

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

 

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.

code of conduct - report abuse