Count Increment Calls After a Timestamp

Implement a counter class that supports two operations:

  1. increment(timestamp): records one call. timestamp is an integer and is guaranteed to be strictly increasing across calls.
  2. `query(...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: