Golang test case bug


  • 0
    P

    For the last test case, which is

    ["HitCounter","hit","hit","hit","getHits","hit","getHits","getHits","hit","hit","hit","getHits","hit","getHits","getHits"]
    [[],[1],[2],[3],[4],[300],[300],[301],[1466000001],[1466000002],[1466000003],[1466000004],[1466000300],[1466000300],[1466000301]]

    This case doesn't work. When I tried my code locally it's working well.

    Then back to OJ, I printed out the 'timestamp' parameter for either hit() or gethits() in every case after 1466000001, it turns out to be 0.


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.