Skip to content

Files

Latest commit

author
Alexander Plutov
Mar 5, 2017
414353b · Mar 5, 2017

History

History
This branch is 3 commits ahead of, 114 commits behind plutov/practice-go:master.

anagram

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Mar 2, 2017
Mar 5, 2017
Mar 2, 2017
Mar 5, 2017

Anagrams

When two or more words are composed of the same characters, but in a different order, they are called anagrams. Write a function FindAnagrams(dictionary []string, word string) []string that will find all possible anagrams for the given string in a given dictionary.

Sample anagram:

"Madam Curie" = "Radium came"

Run tests with benchmarks

go test -bench .