PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/Coding & Algorithms/Intersystems

Find the longest palindromic substring

Last updated: Mar 29, 2026

Quick Overview

This question evaluates string manipulation and algorithmic problem-solving skills, focusing on identifying palindromic substrings and reasoning about performance and edge cases. Commonly asked in the Coding & Algorithms domain to assess practical algorithmic application, it gauges understanding of time/space complexity, input constraints, and robustness in implementation.

  • easy
  • Intersystems
  • Coding & Algorithms
  • Software Engineer

Find the longest palindromic substring

Company: Intersystems

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: easy

Interview Round: Technical Screen

## Problem Given a string `s`, find the **longest contiguous substring** of `s` that is a palindrome (reads the same forward and backward). ### Input - A string `s` consisting of ASCII letters/digits (you may assume standard printable characters). ### Output Return **one** longest palindromic substring. If there are multiple valid answers with the same maximum length, return any of them. ### Constraints - `1 <= |s| <= 2000` ### Examples - Input: `"babad"` → Output: `"bab"` (or `"aba"`) - Input: `"cbbd"` → Output: `"bb"` ### Notes In the interview setting, you may be asked to **explain the approach verbally** (no code required), including time/space complexity and edge cases.

Quick Answer: This question evaluates string manipulation and algorithmic problem-solving skills, focusing on identifying palindromic substrings and reasoning about performance and edge cases. Commonly asked in the Coding & Algorithms domain to assess practical algorithmic application, it gauges understanding of time/space complexity, input constraints, and robustness in implementation.

Related Interview Questions

  • Measure 45 minutes with two ropes - Intersystems (medium)
  • Predict output when iterating ordered keys - Intersystems (medium)
Intersystems logo
Intersystems
Feb 11, 2026, 12:00 AM
Software Engineer
Technical Screen
Coding & Algorithms
1
0

Problem

Given a string s, find the longest contiguous substring of s that is a palindrome (reads the same forward and backward).

Input

  • A string s consisting of ASCII letters/digits (you may assume standard printable characters).

Output

Return one longest palindromic substring. If there are multiple valid answers with the same maximum length, return any of them.

Constraints

  • 1 <= |s| <= 2000

Examples

  • Input: "babad" → Output: "bab" (or "aba" )
  • Input: "cbbd" → Output: "bb"

Notes

In the interview setting, you may be asked to explain the approach verbally (no code required), including time/space complexity and edge cases.

Submit Your Answer

Sign in to leave a comment

Loading comments...

Browse More Questions

More Coding & Algorithms•More Intersystems•More Software Engineer•Intersystems Software Engineer•Intersystems Coding & Algorithms•Software Engineer Coding & Algorithms
PracHub

Master your tech interviews with 8,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.