subovietnam / test-interview

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Description

Nest framework TypeScript starter repository.

Complexity

  1. Rotate Image:
  • validate: time = 10 + 2t = O(n)
  • rotateProcess: time = 2 + t*36t = 2 + 36t^2= O(n^2)
  • rotateMatrix: time = 4 + t = O(n)
  • total: O(n^2)
  1. Hotel Reservation:
  • validate: O(n)
  • bookings: O(n)
  • total: O(n)

Installation

$ npm install

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Support

About


Languages

Language:TypeScript 100.0%