Winter SalePremium questions, over 25% offUnlock all premium questions for over 25% 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
- Merge Unique Sorted Arrayseasy
- Streaming Stop Token Filterhard
- Evens Before Oddsmedium
- Best Window For Target Countmedium
- Digit Replacement Maximizermedium
- Combine N-ary Treeshard
- OA [CodeSignal] Prime Jumpsmedium
- Bounded Repeat Substringmedium
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.