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.
I have the exact same issue with failing tests 5, 14, and 15. I didn't know anything about upper limits of data types so I am going to research further to see if I can find anything. Did you figure this one out? I don't want the answer just any guidance in the right direction if you have it :-)
Well I'm impressed of your solution to find LCM totally efficient way congrats!
Approved! Thanks.
Scala translation ready for review.
Issue
's are kata-related, for help with code usequestion
's. You should also format your code correctly because it's impossible to tell what your code looks like with whitespace.Not at all. You're not placing second char at the end of the word, and you're not keeping chars at the indices
[2; len(word)-2]
at their original place. Maybe there're more problems, but it's hard to work out what this unreadable code does.This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
My code works well for all tests except tests 14, 15 and 5.
Lets take test 5 as sample.
for n = 151042752, I entered from p=1 to p=17 where the calculated number reaches upper limit of Long. And among these p inputs; I've never get 3263 which the number I got from the error of code's attempt output instead of -1 this made me confused please help. Same thing for test 14 and 5.
This comment is hidden because it contains spoiler information about the solution