Created
March 13, 2019 13:40
-
-
Save bcowell/5c334ff5d8224f43cc018ab984fb78f0 to your computer and use it in GitHub Desktop.
Squares of a Sorted Array
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 sortedSquares(self, A: List[int]) -> List[int]: | |
B = [i**2 for i in A] | |
B.sort() | |
return B |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Solution for leetcode 832. Flipping an Image