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.
C Translation (author inactive).
Approved.
There are 5 ways of taking four out of five numbers ( numbers at different indices are treated as different ).
The description is very badly worded. It is combinations (not permutations) and combinations are made not by values, but by indexes. So a
0
at position1
is considered different to a0
at position2
.Fixed in OP's fork
Approved
python new test framework is required. updated in this fork
Approved
python new test framework is required. updated in this fork
You an click the RESET button at the bottom to reset sample tests and solution to their initial form. Back up your solution, click RESET to restore tests, and paste your solution back.
SORRY!!
I have accidentally mangled the sample tests.
Can you reset them please.
I have a one-line solution that works with PyCharm, and I wanto to test it on your data.
Thank you!
input // [1,3,2]
output // [3,1,2]
Man... Why ? You said in the statement that the highest number get the first place, and the lowest the last. Why is the lowest value at index 1 instead of 2 ? I really don't understand.
I took a good ten minutes figuring out why [1,3,2] became [3,1,2]. Sighed.
What is this? Are there 5 different ways of taking no numbers at all?
Loading more items...