GitHub - walkermalling/whiteboard: Particularly Fun Whiteboard Problems and Solutions with Tests · GitHub
Skip to content

Latest commit

 

History

14 Commits

Folders and files

Repository files navigation

whiteboard

Particularly Fun Whiteboard Problems and Solutions with Tests

How (A)

  1. npm install
  2. make a link to the test you want to run: ln src/stairs-combo/stairs-combo-test.js test/automocha
  3. run automocha automocha
  4. fiddle withe the test to explore the solution

How (B)

Each problem's solutions are packaged as node modules, and most are/will be designed to be explored in repl, so do seomthing like this:

$ node
$ > var StairsCombo = require('./src/stairs-combo/stairs-combo.js')
$ > var x = new StairsCombo()
$ > x.setStairs(5)
$ > x.setPeriod(3)
$ > x.recurse(x.stairs, x.period)
$ 13

About

Particularly Fun Whiteboard Problems and Solutions with Tests

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages