Record my LeetCode solution code & explaination.
If necessery, the process of solving problem will be recorded too.
Those codes may not be the best method, some of them even worse, but shows the first impression and the only method I can work out when I meet those questions.
Although, under the limit knowledge of C++ , some questions can't be solved by myself, so, I copied some answers which from other authors used to learn purpose. I'll try to mark those code, but if I missed some of them, please kindly mention me. Thanks.
The form of file name is "XX_YYYY_Z.CPP", the meaning of each section is as follow:
XX
- Level of quesions;YYYY
- Index of Quesitons;Z
- Name of the questions(May include many charactoristics);
XX | Descriptions |
---|---|
00 | Easy |
01 | Medium |
02 | Hard |
e.g. "00_0001_TwoSum.cpp" means: the question is
Easy
level; index of this question is0001
, the name of this quesiton is "Two Sum
"