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
Hey yuhaocooper, thanks for your message, if we add 'v' in 14 position and remove one space we will get:
but we need to have
'vvvvvvv vvvvvv vvvvvv', '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'
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?
Index: 14, added: 'v', deleted: ' '
I don't think this solution is right:
addedText: "sass", deletedText: "a".
At first, one "s" is removed. Then the strings are equal again until "ss" is added.
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.
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. :/
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 )?