โ† Nagarro questions

Find substring with length > n/2

Filed under Nagarro

Given a string `s` of length `n`, find and return any contiguous substring of `s` that has a length strictly greater than `n / 2`.

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

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