</>OfferRetriever
DashboardDiscuss
NEW

Halloween Sale

Unlock all premium questions for over 30% off

$10.42$7.08/mo

--

:

--

:

--

:

--

Get this deal
Back to Microsoft Questions

Longest Proper Prefix And Suffix

Medium

Question

Some strings begin and end with the same run of characters. For s, measure how long that shared run can get when the copy at the front counts as a proper prefix and the copy at the back counts as a proper suffix. "Proper" means the piece must be shorter than s itself, so the whole string never counts as its own prefix or suffix. ...

Asked at:Microsoft

More Microsoft interview questions

All Microsoft interview questions
OfferRetriever

Master technical interviews with real questions from top companies. Build your confidence and career.

PRODUCT
PricingDashboardDiscussOfferRetriever vs LeetCodeCompare
LEGAL

© 2026 Purple Business Holdings LLC. All rights reserved. See Terms of Service.