type-level-leetcode

Silly solutions for silly problems.

Every solution is O(1) because types don't exist at runtime.

Motivation

This is entirely for the sake of some fun and chaos with types 🤪.

Contributing

bun install

To Add a New Problem:

Add a new problem solution into the problems folder. Make sure the filename matches the url of the corresponding leetcode link.

For example: problems/merge-sorted-array.ts for https://leetcode.com/problems/merge-sorted-array

To see the generated site and view all of the solutions:

bun install
bun dev

Credits

type-samurai: for the very helpful utility types associated with solving these problems.