← Microsoft questions

Print substrings and find longest repeated substring

Filed under Microsoft

Generate all substrings of a string and identify the longest substring that appears at least twice, allowing for overlapping occurrences.

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

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