Hi everyone,
Can you code 1/1/2/2/3/3 ?
excatly B.R.BB.RR.BBB.RRR
or in the presentation of the book Required output : RRR.BBB.RR.BB.R.B.
(with the real box - no new pieces)
I think it’s a good level 4.
Enjoy.
Hi everyone,
Can you code 1/1/2/2/3/3 ?
excatly B.R.BB.RR.BBB.RRR
or in the presentation of the book Required output : RRR.BBB.RR.BB.R.B.
(with the real box - no new pieces)
I think it’s a good level 4.
Enjoy.
I stumbled across a solution to this by accident while playing around (and partially inspired by my solution to challenge #38).
If you start with 12 marbles you’ll get the following output:
RRR.BBB.RR.BB.R.B
It actually generates an infinite sequence with a period of 16.
RR.BB.RRR.BBB.RR.BB.R.B