“Expert” Hacker(Black Belt Level)
Subroutine ANAGRAM(X,Y) returns TRUE exactly when X and Y are anagrams. It works by sorting the letters in X and Y
Input X
Loop through all dictionary words Y
If ANAGRAM(X,Y) output Y
Previous slide
Next slide
Back to first slide
View graphic version