No description or website provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
.travis.yml
README.md
main.go
main_test.go

README.md

Knights on a Keypad

Build Status Coverage Status

Fun exercise posted by a cool colleague at work as an interview question.

Usage

$ go run main.go --startposition=1 --length=6 
Using knight moves and a keypad
1 2 3
4 5 6
7 8 9
  0  
Number: 1 as start position and a phone number of length: 6
The number of possible phone numbers are: 52