Something went wrong. Try again.
silly solutions for silly problems tylur.dev/type-level-leetcode
Something went wrong. Try again.
Files
README.md
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.
- Astro 61%
- TypeScript 32%
- CSS 4%
- JavaScript 3%