Skip to content

Commit eeaa620

Browse files
authored
docs: add a description of the solution to lc problem: No.0521 (#736)
No.0521.Longest Uncommon Subsequence I
1 parent 6db436c commit eeaa620

File tree

1 file changed

+10
-0
lines changed
  • solution/0500-0599/0521.Longest Uncommon Subsequence I

1 file changed

+10
-0
lines changed

solution/0500-0599/0521.Longest Uncommon Subsequence I/README.md

+10
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,16 @@
4747

4848
<!-- 这里可写通用的实现逻辑 -->
4949

50+
**此题最难之处是理解题目想描述的是什么玩意**
51+
52+
假定: `a = "abc", b = "abb"`
53+
54+
要是说其中最长的相同子序列,便是 `ab`
55+
56+
而特殊序列则是求**非子序列**,此时列举 `a` 的子序列 `"abc"``b` 拿不出来,那这就是一个成功的非子序列。
57+
58+
如此,在 `a != b` 时,谁最长谁就是 *最长的特殊序列*
59+
5060
<!-- tabs:start -->
5161

5262
### **Python3**

0 commit comments

Comments
 (0)