Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/chibby0ne/knights_on_a_keypad
- Owner: chibby0ne
- Created: 2018-02-26T17:41:23.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-08-19T23:00:28.000Z (over 4 years ago)
- Last Synced: 2023-08-01T12:58:15.394Z (over 1 year ago)
- Topics: go, golang, interview-questions
- Language: Go
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```