npm i @jcirizar/water-jug-solver
Note: NPX will ask for confirmation to install the package, hit Enter or 'y'
npx @jcirizar/water-jug-solver 3 5 4
Note: NPX will ask for confirmation to install the package, hit Enter or 'y'
docker run -it --rm node:alpine npx @jcirizar/water-jug-solver 3 5 4
import { WaterJugSolver } from '@jcirizar/water-jug-solver';
const solver = new WaterJugSolver(5, 3, 4);
console.log(solver.solve());