/derangement

Derangement Assignment

Primary LanguageTypeScript

Find ith Derangement

How to run it

First install dependencies, bun install.

bun index.ts n i

Replace n and i with the actual values of n and i respectively. If not supplied as command-line args, the program will ask you to enter them.

Run tests

bun test