Week #02 of Leetcode
· [[leetcode]] · CommentsThis week I’ve built a shell script to generate a boilerplate for the problem from
leetcodegraphql api just run:./bin/new :slug:and this will generate
index.mdwith all metadata for the problem,index.tswhich contains the function, andindex.test.tswhich contains a generic test case (TODO: will make it dynamic to get test cases from the api).Also a new design for leetcode problem page with native html
detailstag for descriptionand a github workflow to generate the /leetcode page and commit the changes into the leetcode branch, and after that get finished will trigger another one to build my main website to get the latest changes
Techniques:
Prefix-Sum
So more prefix-sum problems, just to get comfort with the concept
Backtracking
I spend most of this week to get understand backtracking, it kinda challenging at the beginning, but after you get the pattern, you will crush any backpacking problem, and the main key for to get the constrains and base case by illustrate the problem and solution by hand in the paper first.
Lined-List
I just solved one easy problem, and start to implement (WIP) the
linkedlistdata stricture using typescript
Webmentions
Have you written a response to this? Let me know the URL:
Comments
No Comments yet!