Last active
September 18, 2017 09:53
-
-
Save LewisYoul/18e126a95cb260e19cbc1989741c976f to your computer and use it in GitHub Desktop.
8 Kyu Question
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
#Using invert on the following should return: | |
invert([1,2,3,4,5]) == [-1,-2,-3,-4,-5] | |
invert([1,-2,3,-4,5]) == [-1,2,-3,4,-5] | |
invert([]) == [] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment