Solving Number of Recent Calls in go. Please try yourself first to solve the problem and submit your implementation to LeetCode before looking into solution.

Problem Description

Example 1:

Input: inputs = ["RecentCounter","ping","ping","ping","ping"], inputs = [[],[1],[100],[3001],[3002]]
Output: [null,1,2,3,3]

Note:

See the full details of the problem Number of Recent Calls at LeetCode

Originally posted at: @github.com/halfrost/LeetCode-Go