Now it's 6 :(
BETWEEN every two blue beads
Can someone please explain to me why you need to subtract 2 of n? I got it right by luck.
Approved by author
This comment is hidden because it contains spoiler information about the solution
Please use spoiler flag next time.
I edited the kata to clarify it in the initial solution
Check my solution if you want to do it in the same way while handling an invalid colour
I think the tag was there by mistake, I fixed it.