← Questions

Score how close a string is to a palindrome

0
AppleCodingLast asked Mar 2026

Design a score for strings that are almost palindromes and implement it. Decide what the score measures (for example, mismatched pairs when comparing from both ends, or the fewest edits needed to make a palindrome), justify the choice, then write it and discuss its cost.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding