Skip to content

Instantly share code, notes, and snippets.

@lukmdo
Created June 30, 2015 15:45
Show Gist options
  • Save lukmdo/0b592a11027f5a45fad8 to your computer and use it in GitHub Desktop.
Save lukmdo/0b592a11027f5a45fad8 to your computer and use it in GitHub Desktop.
def test_solution():
assert solution([]) == None
assert solution([1]) == 1
assert solution([1, 2]) == None
assert solution([1, 2, 3]) == None
assert solution([1, 2, 1]) == 1
assert solution([1, 2, 1, 2]) == None
if __name__ == "__main__":
test_solution()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment