A Typescript implementation of the solutions to Cracking the Coding Interview by Gayle McDowell
npm install ctci-chambers
A Typescript implementation of the solutions to _Cracking the Coding Interview_ by Gayle McDowell.
npm install ctci-chambers
Import the entire package:
``javascript
import * as ctci from 'ctci-chambers';
ctci.isPalindromePermutation('race car'); // true
ctci.isPalindromePermutation('nope'); // false
`
or, import only the desired functions:
`javascript
import { isPalindromePermutation } from 'ctci-chambers';
isPalindromePermutation('race car'); // true
isPalindromePermutation('nope'); // false
`
- Chapter 1: Arrays and Strings:
- isUniqueisPermutation
- urlify
- isPalindromePermutation
-
Tests are written using Jest. Install the project dependencies first, then run the tests.
`bash``
npm install
npm test
I had two goals in mind:
1. Deploy a package to npm.
2. Solve all the questions in _Cracking the Coding Interview_.
It was a way to also practice semantic versioning, documentation, commit messages, TDD, and more.