asdf2014 / algorithm

Team up to solve problems on LeetCode together
https://yuzhouwan.com/posts/666/
Apache License 2.0
217 stars 59 forks source link

solve 5 #17

Closed GinRyan closed 5 years ago

pep8speaks commented 5 years ago

Hello @GinRyan! Thanks for opening this PR.

[Line 18:4](https://github.com/asdf2014/algorithm/blob/a8d41d27155d7ab388632013ff78ab1238a333e2/Codes/GinRyan/LeetCode/Python 3 Solves/5_longest_palindromic_substring.py#L18): W291 trailing whitespace [Line 22:1](https://github.com/asdf2014/algorithm/blob/a8d41d27155d7ab388632013ff78ab1238a333e2/Codes/GinRyan/LeetCode/Python 3 Solves/5_longest_palindromic_substring.py#L22): E302 expected 2 blank lines, found 0 [Line 29:1](https://github.com/asdf2014/algorithm/blob/a8d41d27155d7ab388632013ff78ab1238a333e2/Codes/GinRyan/LeetCode/Python 3 Solves/5_longest_palindromic_substring.py#L29): W293 blank line contains whitespace [Line 30:28](https://github.com/asdf2014/algorithm/blob/a8d41d27155d7ab388632013ff78ab1238a333e2/Codes/GinRyan/LeetCode/Python 3 Solves/5_longest_palindromic_substring.py#L30): E231 missing whitespace after ',' [Line 32:21](https://github.com/asdf2014/algorithm/blob/a8d41d27155d7ab388632013ff78ab1238a333e2/Codes/GinRyan/LeetCode/Python 3 Solves/5_longest_palindromic_substring.py#L32): E231 missing whitespace after ':' [Line 33:22](https://github.com/asdf2014/algorithm/blob/a8d41d27155d7ab388632013ff78ab1238a333e2/Codes/GinRyan/LeetCode/Python 3 Solves/5_longest_palindromic_substring.py#L33): E231 missing whitespace after ':' [Line 34:63](https://github.com/asdf2014/algorithm/blob/a8d41d27155d7ab388632013ff78ab1238a333e2/Codes/GinRyan/LeetCode/Python 3 Solves/5_longest_palindromic_substring.py#L34): E225 missing whitespace around operator [Line 36:40](https://github.com/asdf2014/algorithm/blob/a8d41d27155d7ab388632013ff78ab1238a333e2/Codes/GinRyan/LeetCode/Python 3 Solves/5_longest_palindromic_substring.py#L36): E203 whitespace before ',' [Line 36:56](https://github.com/asdf2014/algorithm/blob/a8d41d27155d7ab388632013ff78ab1238a333e2/Codes/GinRyan/LeetCode/Python 3 Solves/5_longest_palindromic_substring.py#L36): E202 whitespace before ')' [Line 38:44](https://github.com/asdf2014/algorithm/blob/a8d41d27155d7ab388632013ff78ab1238a333e2/Codes/GinRyan/LeetCode/Python 3 Solves/5_longest_palindromic_substring.py#L38): E225 missing whitespace around operator [Line 39:82](https://github.com/asdf2014/algorithm/blob/a8d41d27155d7ab388632013ff78ab1238a333e2/Codes/GinRyan/LeetCode/Python 3 Solves/5_longest_palindromic_substring.py#L39): E225 missing whitespace around operator [Line 39:83](https://github.com/asdf2014/algorithm/blob/a8d41d27155d7ab388632013ff78ab1238a333e2/Codes/GinRyan/LeetCode/Python 3 Solves/5_longest_palindromic_substring.py#L39): E202 whitespace before ')' [Line 39:85](https://github.com/asdf2014/algorithm/blob/a8d41d27155d7ab388632013ff78ab1238a333e2/Codes/GinRyan/LeetCode/Python 3 Solves/5_longest_palindromic_substring.py#L39): E221 multiple spaces before operator [Line 43:33](https://github.com/asdf2014/algorithm/blob/a8d41d27155d7ab388632013ff78ab1238a333e2/Codes/GinRyan/LeetCode/Python 3 Solves/5_longest_palindromic_substring.py#L43): E225 missing whitespace around operator [Line 44:59](https://github.com/asdf2014/algorithm/blob/a8d41d27155d7ab388632013ff78ab1238a333e2/Codes/GinRyan/LeetCode/Python 3 Solves/5_longest_palindromic_substring.py#L44): E221 multiple spaces before operator [Line 44:68](https://github.com/asdf2014/algorithm/blob/a8d41d27155d7ab388632013ff78ab1238a333e2/Codes/GinRyan/LeetCode/Python 3 Solves/5_longest_palindromic_substring.py#L44): E225 missing whitespace around operator [Line 46:91](https://github.com/asdf2014/algorithm/blob/a8d41d27155d7ab388632013ff78ab1238a333e2/Codes/GinRyan/LeetCode/Python 3 Solves/5_longest_palindromic_substring.py#L46): E226 missing whitespace around arithmetic operator [Line 50:36](https://github.com/asdf2014/algorithm/blob/a8d41d27155d7ab388632013ff78ab1238a333e2/Codes/GinRyan/LeetCode/Python 3 Solves/5_longest_palindromic_substring.py#L50): E221 multiple spaces before operator [Line 52:101](https://github.com/asdf2014/algorithm/blob/a8d41d27155d7ab388632013ff78ab1238a333e2/Codes/GinRyan/LeetCode/Python 3 Solves/5_longest_palindromic_substring.py#L52): E501 line too long (122 > 100 characters) [Line 54:32](https://github.com/asdf2014/algorithm/blob/a8d41d27155d7ab388632013ff78ab1238a333e2/Codes/GinRyan/LeetCode/Python 3 Solves/5_longest_palindromic_substring.py#L54): E225 missing whitespace around operator [Line 55:33](https://github.com/asdf2014/algorithm/blob/a8d41d27155d7ab388632013ff78ab1238a333e2/Codes/GinRyan/LeetCode/Python 3 Solves/5_longest_palindromic_substring.py#L55): E225 missing whitespace around operator [Line 78:1](https://github.com/asdf2014/algorithm/blob/a8d41d27155d7ab388632013ff78ab1238a333e2/Codes/GinRyan/LeetCode/Python 3 Solves/5_longest_palindromic_substring.py#L78): W391 blank line at end of file

Do see the Hitchhiker's guide to code style