nkeil / kata-machine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Data Structures & Algorithms Practice Tool

Forked from https://github.com/ThePrimeagen/kata-machine

How It Works

  1. Install Node.js and Bun.

  2. Clone the repo and install the dependencies

bun install
  1. Edit the ligma.config.js file to contain only the katas you want to practice for the current day.
export default {
  dsa: [
    "InsertionSort",
    "MergeSort",
    "Queue",
    "Stack",
    "QuickSort",
    "DijkstraList",
    "PrimsList",
  ] as const,
};
  1. Create a day of katas from the list in ligma.config.js.
bun generate

This will progressively create folders named

src/day1
src/day2
...

bun generate will also update the tsconfig.json and jest.config to point the latest day folder via tspaths. This allows us to avoid updating anything for testing each day.

Testing

Run all tests for the current day:

bun run test

Run only specific tests for the current day:

bun jest [test-name-partial]

About


Languages

Language:TypeScript 99.9%Language:JavaScript 0.1%