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.
Yes, 'abc' does end in 'c', but it also ends in 'bc' and also 'abc', as well as the empty string possibility.
So any string (actually even an empty one) can be considered to end with an empty string.
It's not a mistake, and it's not wrong; in fact most langauges have that as a sample test, including your language of JavaScript.
Not a kata issue.
My code is pretty simple; straightforward decimal math. Faster than most of the solutions here in the "Best Practices" section. Especially the ones using Linq. One solution using bitwise operators (https://www.codewars.com/kata/reviews/56a1b61ab8433c6f3c000079/groups/56db0ec73cb6f579c50011bd) was faster than mine by about 30%.
Your solution was 20 TIMES FASTER than mine. Just. Wow. Time to go down a rabbit hole...
I understand. Thank you for your attention.
Hi, once a kata has been retired, as this one was, it cannot be re-published.
I have added the sample tests and random tests
added via editor
I'm still learning, I don't know exactly how pointers work.
the initial code crashes and does not explain what kind of pointer is to be returned. there should be a comment about return a heap-allocated array of 2 elements, and the initial code should be e.g.
the function declaration for mirror should have the input parameter data
you are instead using a global array called arr
get rid of that, put data in the declaration, and your function should work
take note data was already part if the set-up, but you took it out. avoid that in the future. your function is expected to operate on whatever input the testing suite sends it
no
dude, are you an admin?
retired
those 3 tests that were labeled 'Randomized'
they were not random at all,
because they would always expect the same exact 3 answers
hello,
as i was new, i dont know that much.
if you can please guide me through!
and i gonna delete this and create with another logic.
Not that it matters now, but your "random" tests were the same three tests every time. That's not very random.
Loading more items...