Barbara Fischer wrote:... print 'false' if the value '3' appears in the array exactly 3 times and no '3's are next to each other. Otherwise print 'true'...
I hate it when problem statements have two negatives in the same sentence/context. I don't find it intuitive at all.
Have a look at this :
"Push this button to send email"
vs
"Don't push this button if you don't want to send an email"
I typically re-word such problem statements to suit my intuition:
If either input contains "33" or input does not contain exactly 3 "3"s, then print "true". Else print "false"
I hope this helps you