Question bank › Two Pointers
Dsa Two Pointers Warm-up

Check Palindrome Substring

Write a function to determine if there's any substring in a given string that is a palindrome and has a length of at least 3. Input: A single line containing a string consisting of lowercase alphabetical characters. Output: Return 'Yes' if there's a palindrome substring of length at least 3; otherwise return 'No'. Example: Input: aabcba Output: Yes (substring 'abcba')

Key concepts

two_pointersstringsubstring

Practise this out loud — free

Start a mock interview on THIS exact question — a voice AI interviewer opens with it, pushes back like a real onsite, then hands you an instant scorecard.

🎙 Practise this question now
Part of InterviewLab's verified interview question bank. We show the prompt and concepts to practise with — never a copy-paste solution.