Sujet : Re: Does the number of nines increase?
De : chris.m.thomasson.1 (at) *nospam* gmail.com (Chris M. Thomasson)
Groupes : sci.mathDate : 11. Jul 2024, 01:41:18
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v6n9ne$23rhi$7@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
User-Agent : Mozilla Thunderbird
On 7/10/2024 5:32 PM, Ben Bacarisse wrote:
"Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> writes:
[...]
For example, with these tiles, the sequence 1, 2, 1, 3 produces
aa bb aa abb
aab ba aab b
r[0] = aa
r[1] = bb
r[3] = abb
r[4] = aab
r[5] = ba
r[6] = b
Where:
r[0] r[1] r[0] r[3]
r[4] r[5] r[4] r[6]
Is a legit mapping?
with top string aabbaaabb = bottom string aabbaaabb. So for this input,
the program should print "yes". You don't need to give the sequence
that gives the matching top and bottom strings (though that would be a
neat extra), you just have print yes or no depending on whether such a
sequence of tiles exists or not.