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.
Python : I don't know if it's just me, but it seems like most of the solutions aren't working.
C translation
Please, C translation
Python new test framework should be used (Refer this for more detail)
C translation
Sortable
does not really define a sorting: at the very least a sorting algorithm should accept an input list, a comparison function, and do the sorting.However, the current design has none of these: it instead have algorithms that call certain functions in certain ways, and asks us to distinguish between their call patterns. This isn't sorting at all: in fact there are no "input" to begin with because list access/write are all done inside the user-defined functions (
SortDataType.arr
is completely irrelevant). They are not correct sorts unless user code obeys the constraints stated by the interface.Sometimes actual test crashes:
I have the correct code, although I cannot get to work fast enough to complete more than 33 test cases..
Any reasons why the input is always given in an ascending order? None of the solutions actually require this.