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 hintsTopics
Also asked at 9 companies
More Atlassian Questions
Stock Price FluctuationMediumRank Teams by VotesMediumHigh-Access EmployeesMediumMaximum Good Subarray SumMediumSmallest Missing Non-negative Integer After OperationsMedium
View all Atlassian questions