PYCO_NODEJS_TEST_201908

Problems

  • Rotate picture
Time Complexity: O(n^2)
Memory Complexity: O(n)
  • Hotel Reservation
Time Complexity: O(n)
Memory Complexity: O(n)

Dependency

  • NodeJS - evented I/O for the backend
  • MochaJS - JavaScript test framework running on Node.js and in the browser
  • ChaiJS - BDD / TDD assertion library for node and the browser

Installation

Install the dependencies and devDependencies and run unit test for funtions:

$ npm install
$ npm run test