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.
"s:str" represents that the given paramater is a string and "-> str" represents that the function returns a string
I tell you
Damn, everyday this site makes me feel dumb as hell. Motivating as hell.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
for j in range(i, len(array)):
It is creating a for loop that iterates from i to the length of the array. It is used to compare i to all of the remaining elements in the array.
This comment is hidden because it contains spoiler information about the solution
Not a kata issue, comment the sample tests until you find the one your code fails with an infinite loop, read this too: https://docs.codewars.com/training/troubleshooting/#timeout
You are returning the function itself, instead of calling it.
Your code will return after seeing just the first item, every time.
You're not calling the functions, not a kata issue. Read the posts below too.