Halloween Sale
Unlock all premium questions for over 30% off
Suffix Maximum Occurrences
Medium
Question
Two arrays are provided: the integers nums and a list of starting indices query. Each entry of query names a starting position. The suffix of nums from there through the last element has some largest value; count how often that value occurs within the suffix. Produce one count per query, keeping the same order as query.
...
More Microsoft interview questions
- Segment String Reconstructionhard
- Best Window For Target Countmedium
- OA [CodeSignal] Prime Jumpsmedium
- Combine N-ary Treeshard
- Digit Replacement Maximizermedium
- Evens Before Oddsmedium
- Bounded Repeat Substringmedium
- Non-Adjacent Team Selectionhard
OfferRetriever
Master technical interviews with real questions from top companies. Build your confidence and career.
LEGAL
© 2026 Purple Business Holdings LLC. All rights reserved. See Terms of Service.