Last active
February 20, 2019 15:07
-
-
Save bcowell/05f0e6f62815f507715a8d94610f397f to your computer and use it in GitHub Desktop.
sort-array-by-parity
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def sortArrayByParity(self, A): | |
A.sort(key=lambda x: x%2) | |
return A |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Faster than 99.88% solutions for leetcode 905. Sort Array By Parity