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.
no need to check if word exists
This comment has been deleted.
bruh,
That's not the only thing to check for.
Read the dscription properly
windows xp error
If the goal of the function is to return a sorted array, not returning one in some cases seems counter-productive to me.
Hello,
I think there is an issue on the output of the test result. When hitting the attempt button I have the following result of my test:
Expected
<[]int | len:93, cap:128>: [-96, -95, -92, -90, -90, -89, -88, -86, -82, -82, -81, -69, -69, -68, -68, -63, -62, -61, -59, -55, -52, -52, -49, -47, -43, -33, -33, -33, -32, -30, -28, -27, -26, -24, -20, -18, -15, -15, -14, -14, -12, -6, -5, -5, -2, -2, -1, 2, 2, 3, 3, 6, 7, 12, 15, 17, 18, 21, 23, 27, 29, 32, 33, 34, 35, 37, 42, 44, 46, 47, 48, 48, 50, 53, 54, 55, 59, 62, 63, 64, 67, 78, 81, 82, 82, 83, 83, 86, 88, 90, 91, 95, 98]
to equal
<[]int | len:93, cap:128>: [-33, -33, -33, -33, -33, -33, -33, -33, -33, -33, -33, -33, -33, -33, -33, -33, -33, -33, -33, -33, -33, -33, -33, -33, -33, -33, -14, -14, -14, -14, -14, -14, -14, -14, -14, -14, -14, -14, -14, -5, -5, -5, -5, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 55, 55, 55, 78, 78, 78, 78, 78, 78, 82, 82, 83, 83, 83, 86, 88, 90, 98, 98, 98]
I think the result expected is achieve but the test expectations doesn't seem to be right or did I miss something?
Kind regards
JM
This comment is hidden because it contains spoiler information about the solution
Isn't it counter-productive to return an empty array instead of None when the array passed is None?
yes, i did
but maybe you're unfamiliar with how the site works. you don't need to create another kata just for your peers when there are already similar katas that have been published. you can simply send them the links of katas like these for them to practice, instead of making one on your own.
Did you read the comment down bellow?
func
Guys, just saying, this is intended as a kata for my peers who use this platform
Ranks can't be changed ATM
I would not say that this is a 5-kyu - maybe 6 at max
The description claims that data passed into order is [float (or int), str], meaning that data passed into calculate should always have numbers at even indices, and strings at odd ones, i.e. [float, str, float, str, ... ].
However, in the actual test cases, some inputs are [str, float, str float, ... ] the opposite of what is stated.
i.e. the description contradicts the tests.
Loading more items...