Clone this repository and install npm project dependencies
yarn install
You can run all Mocha test using this command:
yarn test
Build the code in a runnable ES5 format
yarn build
A .editorconfig
configuration file and .eslint
files are provided, you can also run linter using this command:
npm run lint
for question with my solution we have aa time complexity of O(1) linear time and a space complexity of O(1)