Skip to content

meior/coding-interviews

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Coding Interviews

My solutions and test cases for programming practice in book Coding Interviews: Questions, Analysis & Solutions. It contains totally 66 questions, i will often update later. I programmed with JavaScript and run it on Node.js v6.10.2. Mocha provides unit testing to show whether or not answer is correct.

Build Status Node.js Mocha Open Source Love MIT Licence

Installation

Download this project:

$ git clone git@github.com:meior/coding-interviews.git

Install dependencies:

$ cd coding-interviews
$ npm install

Usage

Show categories and questions in project with this command:

$ npm start

This is the structure of project files:

  • project
    • src
    • utils
    • .eslintrc
    • .gitignore
    • index.js
    • package.json
    • package-lock.json
    • README.md

You can find categories in src folder, which include several programming questions in them.You can find some files like these in questions folders:

  • test
    • arraySearch.test.js(Mocha testing script)
    • data.js(test case)
  • arraySearch.js(solution)
  • README.md(question and analysis)

Test your code of solution by using Mocha script, you should install it globally:

$ npm install -g mocha

Run this command in questions folder:

$ mocha

Now, you can see how many test cases passed. mochaDemo

About

My solutions and test cases for programming practice in book Coding Interviews

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published