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.
Easy to read and understand compared to the other solutions though it will have overall time complexity is O(n).
added.
I may aswell approve this.
nice you are now 4kyu !!!! asking make you more smarter!
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Best solution, imho
Js array split and join method both use for loops underneath the hood making your solution have a time complexity of O(n + m) but solving in string without converting to array the for loop runs only once and gives a better solutions with O(n) time complexity.
Python translation:
https://www.codewars.com/kumite/60de42b5d8caf60042fc7b7e?sel=60de42b5d8caf60042fc7b7e
This comment is hidden because it contains spoiler information about the solution
Need to add random tests
Cool answer. I was trying to do something like this but failed.
Please suggest better wording.
For now, closing the issue; it's been six months and it doesn't look like it's going to be addressed without a suggested improvement.
wording is not clear
This solution fails for numeric values of 0. The ternary operator should have this>=0 or have this<0 and the last two arguments swapped.
Loading more items...