#88. haveThree
haveThree
Background
Description
Given an array of ints, return true if the value 3 appears in the array exactly 3 times, and no 3's are next to each other.
Format
Input
Output
Samples
[3 1 3 1 3]
true
[3 1 3 3]
false
[3 4 3 3 4]
false
Limitation
1s, 1024KiB for each test case.