Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 650 Bytes

README.md

File metadata and controls

18 lines (15 loc) · 650 Bytes

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