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.
To complete the task it's preferrable to run over the array only once (or twice if impossible) without array mutations. Otherwise you won't complete similar tasks
OK, one more kata and I go to sleep
not going to sleep for three hours
idk, i've been sitting for an hour, and it's an absolute random
•Only one function can be defined.
•The code has a length limit:
ok :D
boolean
Weird this 7kata is practically the same as this 4th - https://www.codewars.com/kata/5324945e2ece5e1f32000370
Those who solved this kata in 2022 gotta try that one above. Nice task for learning how to deal with potentially big integers
I solved it even without debugging and on the first try, awesome, can be proud of myself :D.
For people who think, this kata's too difficult - there are many 6 katas solvable in one line, and many 7 katas like that - so the difference between 6kyu and 7kyu is transparent, but it's not the level of 5kyu
"What If I Told You There is No Chocolate?: expected -1 to equal 0"
made me laugh :D
Yes, I was confused by the error and came to returning an array :D. My brains must be not quite prepared for the task for now
expecting [ list of possible correct answers ] to include < your answer > : expected [ 11, 14 ] to include [ 11, 14 ]
this 7 kata took too much time for 7 kata, and I still don't get the error
i think it gotta be kata 4 (especially because of guys weighing more than 1000)
If anyone has issue in JS like 'Should throw a RangeError' - just copy the error and paste without 'Should' in the right place (without return)