Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Correction: upon further reading I see that there are no transposed digits but the whole text is somewhat misleading
I'd expect to have the
and so on.
Python: The description and example contain two pairs of transposed digits (
21 <-> 12
)X = [6, 9, 21]
is detailed below:" but the code starts withX_1 = [6, 9, 12]
solution([6, 9, 21]) #-> 9
but the detailed steps start with[6, 9, 12]
The code shown assumes the correct values