64.8k views
3 votes
Java there are n coins each showing either heads or tails we would like all the coins to form a sequence of alternating heads and tails what is the minimum number of coins that must be reversed to achieve this

1 Answer

4 votes

El número mínimo de monedas que se deben invertir para lograr esto:

45 moas

User Chris Marie
by
4.2k points