Fall 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
- Streaming Stop Token Filterhard
- Merge Unique Sorted Arrayseasy
- Segment String Reconstructionhard
- Find K Largest Elementseasy
- Beam Search Sequence Decodingmedium
- OA [CodeSignal] Prime Jumpsmedium
- Evens Before Oddsmedium
- Best Window For Target Countmedium
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.