X461: Arrays - Find four
Return the index of first four in an array. Return -1 if there are none.
Examples:
findFour({4,1,4,0,0,0,2,4,4,1,4}) -> 0
Your Answer:
Feedback
Your feedback will appear here when you check your answer.
Return the index of first four in an array. Return -1 if there are none.
Examples:
findFour({4,1,4,0,0,0,2,4,4,1,4}) -> 0
Your feedback will appear here when you check your answer.