Just some leetcode solutions in Python.
- Container with max water
- Eval reverse Polish notation
- Generate balanced parentheses
- Group anagrams together
- Is Anagram
- Longest consecutive seq
- Longest non repeat substr len
- Product except self
- Queen attack
- Stock max profit - single txn
- String permutations as substring
- Three sum to zero
- Top K frequent items
- Trap rain water
- Two sum to target
- Valid parentheses
To run the solutions just invoke the file from command line, eg:
python containermaxwater.py
# py3
python3 containermaxwater.py