Skip to content

maytees/myleetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

My Leetcode solutions

Resources

Stars

Watchers

Forks