Skip to content

Commit

Permalink
Create Readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
wisdompeak authored Mar 8, 2021
1 parent a0cb16d commit 3b30a3d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Greedy/1525.Number-of-Good-Ways-to-Split-a-String/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### 1525.Number-of-Good-Ways-to-Split-a-String

遍历p和q的分界点的位置i。我们可以提前用two pass计算出i左边的字符种类数left[i],i右边的字符种类数right[i]。然后第三次遍历所有位置i,检查当```left[i]==right[i]```的时候,说明在此处划分字符串是符合要求的。

0 comments on commit 3b30a3d

Please sign in to comment.