Skip to content

Instantly share code, notes, and snippets.

@cammckinnon
Created February 12, 2012 18:02
Show Gist options
  • Select an option

  • Save cammckinnon/1809944 to your computer and use it in GitHub Desktop.

Select an option

Save cammckinnon/1809944 to your computer and use it in GitHub Desktop.
1. When the input was new Array(1,2,3,4) your output was incorrect.
2. When the input was new Array(2,6,18,54) your output was incorrect.
3. When the input was new Array(1,2,3,4,5,10,20) your output was incorrect.
4. When the input was new Array(1,2,3,4,5,6,7,88,2) your output was incorrect.
5. When the input was new Array(100,200,400,800,1600) your output was incorrect.
6. When the input was new Array(10,110,210,310,410,511) your output was incorrect.
7. When the input was new Array(10,110,210,310,410) your output was incorrect.
8. When the input was new Array(5,10,20,40,80) your output was incorrect.
9. When the input was new Array(-3,-4,-5,-6,-7) your output was incorrect.
10. When the input was new Array(1,5,9) your output was incorrect.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment