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 used a solution similar to this one at first and passed but when I came back and tried an optimized version the optimized code does pass but this old version won't anymore. I think sometimes you can get lucky with this approach if the randomized tests are smaller numbers, but in general they expect the solution to be more optimized. This should probably be higher than kyu 6 imo because 7's generally don't care so much about optimization and this unoptomized approach is the more obvious answer.
This comment is hidden because it contains spoiler information about the solution
https://www.codewars.com/kata/5a1ebc2480171f29cf0000e5/discuss/javascript#633a0080198a4c00306ac9d2
This comment is hidden because it contains spoiler information about the solution
CodeWars JS challenges use NodeJS and some katas use older versions of Node. This one uses Node 8.1.3 which is from 2017. BigInt wasn't supported until Node 10.4.0. You can see on the practice page which version of Node it's using. Sometimes it lets you select between a few different versions but this one only allows 8.1.3..
This comment is hidden because it contains spoiler information about the solution
Read this: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array there is one method that will be useful.
Remove those double quotes, and check this:
Your code would work only with two values.
This comment is hidden because it contains spoiler information about the solution
yeah task is not wrong:=)) I solved too
I just solved it and seems to be OK.
What would be wrong about it?
wtf? what is wrong? i cant decide in python coz this task is wrong
Not anymore.
Fixed.
Loading more items...