Solving anagrams: the irrational way Use irrational numbers and sqrt(x) to detect anagrams with O(n) time and O(1) space 26 Dec 2025