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.
linear time has now been done
tbh one-liners can be fun to speedrun but yeah, they can be really inefficient
the main point of my comment wasn't the bragging part, though it can definitely be seen as that; I really only intended to point out that it felt too easy for 6 kyu as it took me far less time than I'd normally expect from something on this rank. Probably should've made that clearer.
If you're gonna brag, at least have a solution better than
O(n ^ 2)
.if true your answer should not be this long
This comment is hidden because it contains spoiler information about the solution
this shouldn't be ranked 6kyu
actually 8kyu
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Thank you! I should be able to do this now
The result is an object: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object
In Javascript, what is the format of the result supposed to be? I have resturned the results as an array or joined into a string, and still don't get a correct answer.
Omg , how much i tried...
none of them are correct, even though I have tried it in Visual Studio Code and the result is the same
done
Yes, I'm sure I didn't. It took me some time to understand the kata precisely because of that test case I mention (it didn't make any sense, and I thought I was missing something). I wonder if there is any kind of test log to check if someone was editing the tests and forgot to finish or something similar.
Anyway, when hitting ATTEMPT I was able to submit, so at least there's that :P
I cannot see such test case. The only one similar I see is this:
Are you sure you did not modify the sample tests?
I saw something weird and I didn't really know where to report it, hope this is okay.
In C, I noticed a test case that made no sense:
Unless I'm missing something, the expected result should not contain 'A' or '?'.
Also, every other test was commented, so I came to raise an issue. However, I wanted to double check before posting, and now all the tests are okay and uncommented. Furthermore, seems like one of the tests in the "Test cases" section is missing when you try to solve the kata (the last one).
Is this normal? Was someone messing up with this kata?
Loading more items...