Dsa
Two Pointers
Hard
Palindromic Subarray Count
Given a string, return the count of distinct palindromic substrings. A substring is considered palindromic if it reads the same forwards and backwards. Input is a single line string. Example input: 'abba'. Example output: '6'.
Key concepts
two_pointerspalindromesubarrays
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