MCPcopy Create free account
hub / github.com/PinkyJie/leetcode-patterns / FrequencyStack1

Class FrequencyStack1

13_top-k-elements/895_maximum-frequency-stack.js:33–95  ·  view source on GitHub ↗

* * Problem: * Design a class that simulates a Stack data structure, implementing the following two * operations: * * push(int num): Pushes the number num on the stack. * * pop(): Returns the most frequent number in the stack. If there is a tie, return the * number which was pushed later. *

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected