โ† Visa questions
CodingEasy-Medium

Common prefix after character removal

Filed under Visa

Given a string, find the maximum length of a substring that remains a common prefix between the original string and strings formed by removing exactly one character from the original string.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Visa questions

Collected from public candidate posts and coding forums. Updated Nov 2026.