MCPcopy Create free account
hub / github.com/EndlessCheng/codeforces-go / Set

Method Set

leetcode/weekly/121/b/b.go:19–21  ·  view source on GitHub ↗
(key string, value string, timestamp int)

Source from the content-addressed store, hash-verified

17}
18
19func (t *TimeMap) Set(key string, value string, timestamp int) {
20 t.m[key] = append(t.m[key], pair{timestamp, value})
21}
22
23func (t *TimeMap) Get(key string, timestamp int) (ans string) {
24 a := t.m[key]

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected