Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 1.01 KB

File metadata and controls

23 lines (14 loc) · 1.01 KB

My Leetcode

Notes

Some problems have notes, I only started doing this on the 7th question, so 6 of them don't have notes. The notes are easy to read via a README.md in a question's folder. They follow the notes_template.md template.

Using the helper script

To create a folder easily just run the new bash script. This will create a folder with the given Leetcode question number. For typescript there is a template that is pasted automatically.

Using assert (typescript)

To easily test the cases from the site, you can use the assert in assert.ts:

import {assert} from "../assert.ts"
assert(expected: any, actual: any, message = '')

This repo is just for me to keep my Leetcode submissions (I do them locally and then upload) so maybe in the future I can look back at my bad solutions.

Don't be surprised if you dont't find the best code in here, you'll see a lot of unnecessary code

99% percent of the time I will use Typescript but may use something else. I use bun to run these.