Need to add a "keyword" feature of readme file so that you can quickly review the things you have learnt. e.g, 771: set, unordered_set, initialize
-
Practice the data structure and algorithm for C++ (may learn java)
-
Not only get a true solution, but also OPTIMIZE memory and speed
-
Crack the interview
-
Learn git and other stuff
-
Just cool
-
Sort the leetcode problems by acceptance
-
Figure out an intuitive solution, without considering time and memory
-
Figure out a better solution that requires less complexity and compare them
-
Check the discussion section and see how the best answer does
-
Close the discussion and do it again!
-
Take down codes and notes for that problem, and push to this project!
-
Why I got wrong? (if necessary)
-
Complexity analysis, if necessary
-
Syntax (like initialization, compare function and so on)
-
Use key words so that convenient to review!
Reference to this good template
Note that codes cannot run locally. Should copy and paste on leetcode and run.
344: post incremental, pre incremental, swap
461: binary number, bit manipulation, AND, OR, XOR, logic
463: graph, math, 2D vector
537: string manipulation, stoi(int to string), to_string(int to string), buffer, stringstream
654: tree, binary tree, recursion, pointer, reference, pass by pointer, pass by reference, syntax, dynamic object, dynamic memory
728: char to int, bit manipulation, break loop
771: set, unordered_set, initialize
797: DFS, recursive, pass by reference, pass by copy, helper function. auto, iterator