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 full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

General Experience