leetcode-python
leetcode-python copied to clipboard
LeetCode problems in Python
Added solution for `Longest Valid Parentheses` problem
Current algorithm does not wok for such cases like print(s.is_anagram("aabb", "abab")), since it only counts the characters but ignores the order.
There are small typos in: - anagrams/solution.py - jump_game_ii/solution3.py - search_for_a_range/solution2.py Fixes: - Should read `occurrence` rather than `occurence`. - Should read `occurrences` rather than `occurences`. - Should read `minimum`...