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.
Ruby 3.0 should be enabled.
snake_case
for the functions, notCamelCase
Downvoted for the same reasons as Zed and Voile pointed out. If the Python version had random tests up to pretty interesting values of n, it would have been a duplicate of http://www.codewars.com/kata/shuffle-it-up/python
Given the range of the values of the first 10-20 terms there is only 10 numbers of so among the
int
range, so it's not even interesting enough. You can pretty much just hardcode the values.Even
long
is not very enough either (it grows at least exponentially), so the only place where it's appropriate is in a language that has arbitrary sized integers, which C++ doesn't have.Needs Random Tests.
Thanks for the advice :)
Duplicate of many existing katas.
Also needs random tests.
Added
Approved
the description is inconsistent with the task (
No solution
-> that's wrong) and the choice of the returned format is porrly made (between int/list of int: that's not coherent. On this last point, this is rather a comment than anything else. The issue is "on the other side")[You are still missing random tests for the Python version, though...]
Done, cheers
@GiacomoSorbi Yes I am fine with it :)
Ta!
Loading more items...