Skip to content

Instantly share code, notes, and snippets.

@bcowell
Created March 13, 2019 13:40
Show Gist options
  • Save bcowell/5c334ff5d8224f43cc018ab984fb78f0 to your computer and use it in GitHub Desktop.
Save bcowell/5c334ff5d8224f43cc018ab984fb78f0 to your computer and use it in GitHub Desktop.
Squares of a Sorted Array
def sortedSquares(self, A: List[int]) -> List[int]:
B = [i**2 for i in A]
B.sort()
return B
@bcowell
Copy link
Author

bcowell commented Mar 13, 2019

Solution for leetcode 832. Flipping an Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment