Go to file
2019-11-04 15:05:45 -08:00
.gitignore Initial commit 2019-11-03 21:42:28 +00:00
action.js rewrite in JavaScript 2019-11-04 14:55:07 -08:00
bucket.js rewrite in JavaScript 2019-11-04 14:55:07 -08:00
buckets.js rewrite in JavaScript 2019-11-04 14:55:07 -08:00
Dockerfile Add Dockerfile 2019-11-04 14:59:37 -08:00
LICENSE Initial commit 2019-11-03 21:42:28 +00:00
main.js rewrite in JavaScript 2019-11-04 14:55:07 -08:00
README.md update readme 2019-11-04 15:05:45 -08:00

buckets-of-fun

Usage

buckets-of-fun takes a first argument of the target size. The following arguments are the size of the buckets required.

main.js target bucket [bucket...]

target: volume of bucket to search for
bucket: volume of bucket

Install

If node is installed, you can run directly by running:

$ node ./main.js 4 3 5

The node script can also be run from inside a docker container. To build and run, you can following the commands below.

$ docker build . -t buckets-of-fun
$ docker run buckets-of-fun 4 3 5