Skip to content

Instantly share code, notes, and snippets.

@LewisYoul
Last active September 18, 2017 09:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LewisYoul/18e126a95cb260e19cbc1989741c976f to your computer and use it in GitHub Desktop.
Save LewisYoul/18e126a95cb260e19cbc1989741c976f to your computer and use it in GitHub Desktop.
8 Kyu Question
#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