← Google questions
CodingReported in a candidate post, Jul 2025

Cut two strings at a common point to form a palindrome

Filed under Google

Given two strings A and B of equal length N, determine if there exists an index i (0 <= i <= N) such that prefix A[0...i-1] concatenated with suffix B[i...N-1] forms a palindrome.

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 Google questions

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