jessamarie / ctci-solutions-ts

A collection of TypeScript solutions the the data structures & exercises in Cracking the Coding Interview by Gayle Laakmann.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CTCI-Solutions-TS

This repo was created using the exercises in Gayle Laakman's CTCI.

All current solutions are written in TypeScript and compiled to JavaScript (ES6)

Installation

npm install

This will install all related dev-dependencies which are:

  • TypeScript
  • tslint
  • eslint
  • mocha/chai for testing
  • istanbul/isparta for test coverage
  • babel (for es6)

Scripts

npm test - runs all tests in the project using mocha with chai

npm run coverage - runs npm test with istanbul test coverage, opens results in browser

npm run testcov - essentially the same as coverage, except that it runs npm test with isparta for test coverage

npm run lint:ts - fixes errors within TypeScript

npm run lint:js - fixes errors with JavaScript

npm run compile - compiles typescript, and also runs JS and TS linters

About

A collection of TypeScript solutions the the data structures & exercises in Cracking the Coding Interview by Gayle Laakmann.


Languages

Language:JavaScript 52.9%Language:TypeScript 47.1%