All O`one Data Structure at Atlassian

Hard44.1% acceptance

This problem has 87.5% frequency at Atlassian.

Problem Description

Design a data structure to store the strings' count with the ability to return the strings with minimum and maximum counts. Implement the `AllOne` class: * `AllOne()` Initializes the object of the data structure. * `inc(String key)` Increments the count of the string `key` by `1`. If `key` doe...

Read full problem and hints

Topics

Also asked at 9 companies


More Atlassian Questions

View all Atlassian questions