Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/chibby0ne/knights_on_a_keypad


https://github.com/chibby0ne/knights_on_a_keypad

go golang interview-questions

Last synced: about 4 hours ago
JSON representation

Awesome Lists containing this project

README

        

# Knights on a Keypad
[![Build Status](https://travis-ci.org/chibby0ne/knights_on_a_keypad.svg?branch=master)](https://travis-ci.org/chibby0ne/knights_on_a_keypad)
[![Coverage Status](https://coveralls.io/repos/github/chibby0ne/knights_on_a_keypad/badge.svg?branch=master)](https://coveralls.io/github/chibby0ne/knights_on_a_keypad?branch=master)

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
```