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.
show code
I was about to write the same comment but found yours. It is a good solution but yeah shouldn't work unless missing something
Why there is no Math.floor in dividedBy function? It shouldn't work properly.
That's not the input of a single test, that's the input of several tests one after the other, add a new line after printing the input.
I have issues with this problem. Test cases fail on this array:
{1,2,3,4,3,2,1,1,100,50,-51,1,1,1,2,3,4,5,6,20,10,30,10,10,15,35,8,8,8,0,0,8}
My solution returned -1, but the test expected 1, which is impossible since there is no way that the numbers on the right side after first position will evaluate to left.
This comment is hidden because it contains spoiler information about the solution
I got it. Any two numbers must be bigger then the third.
Read this: https://docs.codewars.com/training/troubleshooting#print-input
expected false to equal true What does it mean? Should I return false at any case?
This comment is hidden because it contains spoiler information about the solution
@e1r0nd is the author of the translation. Hopefully he may fix that.
If someone wants to draft new Go test cases in the spirit of all the test cases are Jaden Smith tweets as in the original, I'd be down to approve that. I wouldn't want to prevent a solution like a levenshtein distance compared to different strings collected in a database of Jaden Smith tweets if someone wanted to do that.
Edit to add: the multiple spaces bit, meanwhile, doesn't specifically go against the spirit of the Kata which would be translating alterations of Jaden's tweets back to how they were originally typed.
No worries it's just as mytrofanov said, A space After the last Word and bang it works.
You do something bad, necessarily. I've just used it successfully, as does the third topvoted solution. So please check your code. Look for online documentation if you don't find, you only need to import stuff properly, it's straightforward.
I import string but it did not work.
And yes it is Python Thnk will Keep that in mind
Loading more items...