Python Templates for LeetCode¶
My personal summerized LeetCode Python templates.
This website is still updating slowly due to some difficulties in my academic events in school. If you have any suggestion of:
New algorithm/programming topics (e.g., how about create a template about trie?)
More and better problem examples for existing topics
Please comment on the corresponding pages, and your comment will be kept as a comment for a GitHub issue permanently. Besides, pull requests to correct me or add new contents are definitely welcome.
Some problems are listed without solutions for exercises in each topic, which are promised to be solvable by the provided template (because at least I have already passed them with the template) but may not be the best solutions for the problems.
The difficulty levels marked for those problems may be varied from the levels given by LeetCode officially because it is just my measurement for difficulty levels.
Sometimes, I may give some challenges (marked as Advanced) from sources other than LeetCode, which seem more challenging and can’t be solved by the template directly. But a step forward from the idea in the templates may help solve them. Thus, I just leave them as optional challenges.
I never have a premium subscription on leetcode.com or leetcode.cn due to my poor financial condition. I won’t list any premium problem as material on this site because I guarantee to verify all solutions I post. Of course, I’ll extremely appreciate it if you are willing to sponsor me with a premium subscription on either LeetCode site to encourage me to update some premium problems. cyber begging
More about me¶
Videos: My Bilibili channel, Chinese only,cracking every LeetCode with my friend and discuss in an interactive way.
My solutions for LeetCode weekly contests (Chinese only, very very early stage, till 174 (02/01/2020))
My paper reading notes, mainly about ML/Security.
Open to any dev/research intern opportunity ( US or remote). If you have interest in working with me, please contact firstname.lastname@example.org
Sponsor me! I’m in a poor financial condition due to the suspending research funding now. I can hardly survive this summer, help me! cyber begging
OI Wiki (Chinese only), basic knowledge for competitive programming.
Algorithms for Competitive Programming, English translation of e-maxx.ru/algo, which includes descriptions of many algorithms and data structures especially popular in field of competitive programming.
clist.by, collecting coding contests recently and showing the changes of your history rating.
Leetcode Rating Predictor, predicting your rating changes right after the completion of Leetcode contests.
Test Case Generator, generating test cases with some given constraints.
Cruel Coding Group youxiu is our habit