Frequency Stack with Recency Tie-Breaking

Quick Overview

Implement a frequency stack whose pop operation returns the most frequent value and breaks frequency ties by recency.

Frequency Stack with Recency Tie-Breaking

Company: Amazon

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: medium

Interview Round: Technical Screen

Overview: Implement a frequency stack whose pop operation returns the most frequent value and breaks frequency ties by recency.

Amazon logo
Amazon
Aug 28, 2026
mediumSoftware EngineerTechnical ScreenCoding & Algorithms
15
0
Loading...