Skip to content

Commit d767790

Browse files
committed
Added unorganized.md
1 parent bc82e6b commit d767790

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# LeetCode skills
2+
## Binary tree unified stack iteration
3+
`boolean mark` solution.
4+
5+
## Dynamic programming
6+
- [647. Palindromic Substrings](https://leetcode.cn/problems/palindromic-substrings/)
7+
- [516. Longest Palindromic Subsequence](https://leetcode.cn/problems/longest-palindromic-subsequence/)
8+
For solving the above two issues, we can use two-dimensional array. Remember the `magic word`: **回文串,用一半,内环反**.
9+
10+
The principle of `dynamic programming` is **from top to bottom, from left to right, from less to more, from near to far, from known to unknown**
11+
and **take turns being the boss**.
12+
13+
## Monotonic stack
14+
* Push indies one by one.
15+
* Only the useful indies are kept in the stack. Useless indices are popped (or eaten by followed larger (or smaller) index).
16+
*

0 commit comments

Comments
 (0)