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.
Good Kata. I understood what "method" to use almost right away, but wasnt able to make it work from the first time. It means I have to learn it better...
chatgpt regurgitates other conversations it has seen, and it may have seen many conversations to that effect, so that is what you got.
you might not have been testing one of the cases where your code went into an infinite loop, if something goes wrong and you want to debug it in a different environment, make sure it's the same case (print it out)
the largest string in js has 57 characters and most of them are 20 or less. you have time for billions of operations. so even quite ridiculously inefficient solutions won't time out.
I dont think I got stuck in the infinite loop because in the devtools browsers that code worked perfectly okay.
I asked chatgpt to explain why it timed out - and it said since I used thoes array methods, it had to re-index the array or its items, or something like that
The tests are very small, your code probably wasn't too slow but rather got stuck in an infinite loop.
Good kata! I liked it and solved somewhat in a verbose way, but at least I applied my knowledge about loops and indexes from previous katas so solving these definitely help!
Python fork rewriting the description & adding fixed tests of string length (0 - 2)
You've had more than eight years, you're still here, and it's still not fixed.
( Haskell )
Test suite tests different specs than are in the Description. Inputs of length 1 are special-cased in clear contradiction of the description.
Good kata, but the descripton could be better. Had to use chat gpt to explain what the hell is wanted from me.
Also, tried to use regular array methods - timed out. Had to use another old and tried method with pointers.
Great kata tbh. I knew it was something tricky, and indeed it was. But I solved it accidentally via bruteforcing.
So I am going to read the hell out of closures analyze this kata at depth
probably not the best solution, but this is how my logic worked...
Thanks for answering @Hobovsky, I appreciate it :D
I think that I understood bad the Output, because I was thinking that I should return a list, but it was not that.
I realize that I have to return the count of odd numbers, so I think that my function is wrong, and it should be one number who gives me that error.
However, I cannot build a function who works D:
I know it's a hard way, and hope to reach your level, bro
I'll don't give up and I'll keep trying
But if you could tell me how I should start my function, I'll receive it grateful
I hope that my English it'll understandable ;D
Really cheeky kata...
I admit - I had to look up the answer, can't boast that I solved it myself.
Yet, I did notice one commet which said "look at the outputs in the example". This is a really good hint!
And also, I learned that THAT (the solution) can significantly speed up performance.
that's an abomination :D
it's very simple you need to verifier if the index of the number is a multipule of the number or not if it's true add the number to the new array
Loading more items...