![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
LeetCode
Leetcode刷题记录
Fabriceli
Life is short, we need python
展开
-
LeetCode 1071. Greatest Common Divisor of Strings
For strings S and T, we say "T divides S" if and only if S = T + ... + T(T concatenated with itself 1 or more times) Return the largest string X such that X divides str1and X divides str2. Input...原创 2020-03-12 09:38:02 · 189 阅读 · 0 评论 -
LeetCode 10. Regular Expression Matching
Given an input string (s) and a pattern (p), implement regular expression matching with support for '.' and '*'. '.' Matches any single character. '*' Matches zero or more of the preceding element. T...原创 2020-03-10 16:28:55 · 171 阅读 · 0 评论 -
Leetcode 276. Paint Fence
There is a fence with n posts, each post can be painted with one of the k colors. You have to paint all the posts such that no more than two adjacent fence posts have the same color. Return the tota...原创 2020-03-10 15:45:28 · 199 阅读 · 0 评论