.. | ||
anagram_test.go | ||
anagram.go | ||
README.md |
Anagram
Write a program that, given a word and a list of possible anagrams, selects the correct sublist.
Given "listen"
and a list of candidates like "enlists" "google" "inlets" "banana"
the program should return a list containing
"inlets"
.
To run the tests simply run the command go test
in the exercise directory.
If the test suite contains benchmarks, you can run these with the -bench
flag:
go test -bench .
For more detailed info about the Go track see the help page.
Source
Inspired by the Extreme Startup game view source