kotlin-coding-challenges icon indicating copy to clipboard operation
kotlin-coding-challenges copied to clipboard

Error in tolerant palindrome challenge

Open PiotrPrus opened this issue 4 years ago • 1 comments

Thank you for this repo. Amazing work! I need some clarification over Tolerant palindrome challenge. The description informs about correctness of text, if we do have one wrong symbol, but the solution is not taking into account wrong symbol in first half of the text. Should we assume that the first half is the base? The example that is not working: "#abba". What do you think?

PiotrPrus avatar May 03 '21 20:05 PiotrPrus

I am not sure which solution are you referring to. Maby something has changed over time, but this test works fine for all solutions.

    @Test
    fun `'#abba' a palindrome`() {
        isTolerantPalindrome("#abba") shouldBeEqualTo true
    }

igorwojda avatar Sep 15 '22 18:09 igorwojda

Closing this. Feel free to reopen if needed.

igorwojda avatar Feb 06 '23 17:02 igorwojda