Задача LeetCode 1143 https://leetcode.com/problems/longest...
Решение на python3:
рекурсия - https://github.com/shagtv/leetcode/bl...
итеративное решение - https://github.com/shagtv/leetcode/bl...
Профиль на LeetCode https://leetcode.com/shagtv/