LeetCode Question · Jul 2022

Microsoft | OA | Return max frequent number

2 upvotes 347 views 5 replies

Question Details

You need to implement the following interface: public interface FindMaxFreqNumber { void add(int num); // adds a number to the sequence void removeOldest(); // removes the oldest inserted number int getMaxFreqNumber(); // returns...

Full Details

🔒

Unlock all Microsoft questions

Full insider details, leaked discussions, and candidate experiences.

or every company, $100/year →

About This Question

This is a reported interview question from a microsoft interview for a swe role during the oa round reported in 2022.

It covers the following topics: General Experience .