igorwojda/kotlin-coding-challenges

Error in tolerant palindrome challenge

PiotrPrus opened this issue · 2 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?

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
    }

Closing this. Feel free to reopen if needed.