When you read the instructions, janitormeir says "You can assume the array will always be valid, and there will always be one correct answer." He/she then decides to give a bunch of randomly created arrays as tests. Therefore my code has varying levels of success on different attempts because I'm assuming the instructions are actually correct. As far as I know, randomly generated arrays are random. Thus, either the instructions or the test cases should be changed.
More than just that. The randomly generated cases include colons and and lots of other characters that we were definitely expecting as input.
When you read the instructions, janitormeir says "You can assume the array will always be valid, and there will always be one correct answer." He/she then decides to give a bunch of randomly created arrays as tests. Therefore my code has varying levels of success on different attempts because I'm assuming the instructions are actually correct. As far as I know, randomly generated arrays are random. Thus, either the instructions or the test cases should be changed.