anagram

package
v0.0.0-...-f90b8d0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2017 License: MIT Imports: 3 Imported by: 0

README

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 https://github.com/rchatley/extreme_startup

Submitting Incomplete Problems

It's possible to submit an incomplete solution so you can see how others have completed the exercise.

Documentation

Overview

Package anagram finds whether or not there any anagrams of an input from a set of candidates

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Detect

func Detect(original string, candidates []string) []string

Detect finds any anagram of the original word in the list of candidates

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL