python-ds icon indicating copy to clipboard operation
python-ds copied to clipboard

Pythonic code

Open allentv opened this issue 4 years ago • 1 comments

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?

allentv avatar Aug 09 '20 19:08 allentv

Hey, I would love to refactor the code in a more Pythonic fashion, could you point out some pieces of code to start with?

dvjn avatar Sep 30 '20 17:09 dvjn