python-ds
python-ds copied to clipboard
Pythonic code
Thanks for creating a collection of Python solutions. Most of the code seems to be a direct translation of a C++/Java program and not being pythonic. Simple example would be to use list comprehensions instead of appending elements to a list with a while loop. Would you be interested in PRs that refactor code to be more Pythonic
?
Hey, I would love to refactor the code in a more Pythonic fashion, could you point out some pieces of code to start with?