@@ -2,7 +2,28 @@ leetcode
2
2
========
3
3
4
4
This responsibility is a practice area for leetcode problems.
5
- It not only focuse on solving but also different solutions.
5
+ It not only focus on solving but also different solutions.
6
+
7
+ Furthermore, this responsibility is mainly for different implemention of problem's on leetcode.
8
+ For example, traversing a tree
9
+ 1)DFS and BFS are considered as TWO different solutions
10
+ 2)DFS by recursion and DFS by stack are considered as ONE solution, but TWO different implementions.
11
+
12
+ As we know, when interview, for a problem, the requirement are higher than it in programming contests, we only
13
+ , in programming contests, we only care the algorithm complexity and correctness, but when in interview, the interviewer
14
+ often ask other question, especially about the different implemention and solution. For example, he may ask you whether you can
15
+ implement without define this varable, change recursion to stack, traverse without queue, do not use vector, etc.
16
+
17
+ And if you practice leetcode just like other online judges, just submit and get Accepted, then throw it away, it's hard
18
+ to prepare these questions. Actually, different from complexity and correctness,
19
+ the implemention and solution doesn't have a BEST one and judging standard, for example, when you give interviewer an algorithm
20
+ with best complexity, he may not let you to optimize, and when you give interviewer a code without bug, he may not let you to fix.
21
+ but no matter what solution or implementions you give, he may still want you to change to the one he want.
22
+
23
+ You can discuss the implemention and solution together here, broaden your horizon by view other's code. Maybe it's the best way
24
+ to overcome these problems.
25
+
26
+
6
27
7
28
For more
8
29
========
0 commit comments