Say, you completed a solution and looked up ways on how to optimize code by refactoring, making it more idiomatic. How would you maintain these points? Evernote/Apple Notes looks hard to keep track of, I've tried to put all this in a private git repo but I hardly find myself going back for review. Am I missing something here?
Git commit. I actually have a repo plus test cases.
Same
Test cases though.. many problems don’t give you all the test cases. Once you have the solution that passes why keep test cases? I guess in case you refactor?
Gist
Apple notes
Why do you need notes? Practice and commit to memory through repetition. Sometimes I write code at work and I don’t even remember what I did and have to review it. Leetcode should be no different.
print them all ur solutions and make a booklet of it. it is easy to review whenever you would like.
I keep a simple physical notebook.
Comments in the code, on the solution i submit explaining the logic. Hopefully my submissions dont get deleted lol
Have been using OneNote for this. Made notes for about 200+ problems. Sometimes, I just write a few pointers or draw a few diagrams on my Surface as notes for a problem It helps me a lot while revising
The point of doing leetcode is to know more. Not to note more.