neoglez / comb-to-num

How to convert combination to a number

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tested with:

go version go1.12.5 darwin/amd64
node v10.16.0
Python 2.7.10

Run

Example 1 (primes)

cd path/to/the/source/code
GO111MODULE=on go run ./example1/main.go
node ./example1/index.js
python ./example1/app.py 

Example 2 (odometer effect)

cd path/to/the/source/code
GO111MODULE=on go run ./example2/main.go
node ./example2/index.js
python ./example2/app.py 

Example 3 (combinadics)

cd path/to/the/source/code
GO111MODULE=on go run ./example3/main.go
node ./example3/index.js
python ./example3/app.py 

Example 4 (the bit flags)

cd path/to/the/source/code
GO111MODULE=on go run ./example4/main.go
node ./example4/index.js
python ./example4/app.py 

About

How to convert combination to a number


Languages

Language:JavaScript 36.1%Language:Go 33.9%Language:Python 30.0%