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.
Mistake in description of TnI: States that TnI means "the inversion of the transposition" - formula shows it to be the other way around, transposition of the inversion
fixed, but ideally the entire test suite needs an overhaul
JavaScript: Random tests don't work if the input array is modified.
Random tests don't work if you modify the input array (it's an issue).
[1,2,3] should be [(12-1)+n, (12-2)+n, (12-3)+n] <=> [0,11,10].
it's hilarious. from what we got 0.
T0I - an inversion of T0 - should be [11, 10, 9]. Note that if one asks for the TnI inversion of some set it means the inversion of the transposition n. Consequently, the TnI of [1,2,3] should be [(12-1)+n, (12-2)+n, (12-3)+n] <=> [0,11,10].
so let's take last one [7.4] with T0I
12-7+0 = 5
12-4+0 = 8. so what i'm getting wrong?
pcSet [ 9 ]
operation T1
answer [ 10 ] test says wrong
pcSet [ 7 ]
operation T9I
expected [ 2 ] to deeply equal [ 7 ]
12-7+9 = 14 % 12 = 2 so how we come to 7
pcSet [ 7, 4 ]
operation T0I
unsorted answer [ 5, 8 ]
answer expected [ 4, 7 ]
mind blowing
I agree ^^
Ok... Thanks, easy to solve knowing that indeed ;)
Description should really make it explicit.
It is not a chain of operations -> T11I is not T -> 11 -> I.
T11 -> Transpose by 11
T11I -> Invert by 11
My first impression was also that it was a chain and we would need to parse input like T3I5I11I5, but it is much simpler than that :)
I think Inversion process is not properly described:
[1,2,3], "T11" -> [0,1,2] (ok for me)
So, if inversion(I) subtract each element of the list from twelve., how would:
[1,2,3], "T11I" -> [8,9,10] ?
First:
[1,2,3], "T11" -> [0,1,2]
Then:
[0,1,2] -> "I" -> [(12-0)%12, (12-1)%12, (12-2)%12] -> [0, 11, 10] (sorted: [0,10,11], but no way to get [8,9,10])
Or not?
I would say that the description should still be revised to state that the inversion (if any) occurs before the transposition. This is important, because (12 - n) + m does not equal 12 - (n + m)
Oh no, the context is a good thing.
The revised description is better, and the idea I got from the old one wasn't crazy I see. :]
Done! Thank you!
I hope it is ok like this!
Loading more items...