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.
This comment is hidden because it contains spoiler information about the solution
Yes PetrSr you are right I have added these examples, thanks
The examples in the kata description are misleading because they only contain a very limited subset of test cases (where text is either only added or only deleted, not both). You should add some human readable examples with text both added and deleted to clearly show what you are asking for. For example something like: findDifferent("Hello John, how are you?", "Hello Jane, how are you?"). I would also suggest adding a few reasonable human readable strings to the test cases rather than using only purely random strings or concatenations of single words.
Ah, you can only start adding/deleting from one index? Might be good to make it more clear in the description :) Thanks!
no problem, good luck)
ah got it, my bad on the count of 'v'. will edit my answer to deal with this problem. thanks!
hey jeroenpol, can you write your answer like it
{
index: 13,
addedText: "sass",
deletedText: "a"
}
Hey yuhaocooper, thanks for your message, if we add 'v' in 14 position and remove one space we will get:
'vvvvvvv vvvvvvvvvvvvv'
but we need to have
'vvvvvvv vvvvvvvvvvv'
Hi, i'm having some issue with the this test case above. I'm able to pass everything but this case. The solution suggest
Index: 14, added: '', deleted: ' v'
My solution gets
Index: 14, added: 'v', deleted: ' '
Which fulfills all the conditions listed in the description. Is there something wrong?I don't think this solution is right:
At first, one "s" is removed. Then the strings are equal again until "ss" is added.
Dammit.
I hope the kata doesn't go away though ..
No, they are cheating. It's all the same user, and they got the rank down to 3kyu literally.
See https://github.com/Codewars/codewars.com/issues/1378#issuecomment-611016264
I approved it, but there's something fishy about a lot of solvers.
They may have inflated average rank as well ( and I may have overcorrected for Zed's underrank ). But I can't change that now.
All in all, I feel cheated. :/
Cheers.
Could you also approve this one, so I can do the JS version as well ( description has updates and I would like not to have merge conflicts )?
.
Loading more items...