MCPcopy Create free account
hub / github.com/austingebauer/go-leetcode / Constructor

Function Constructor

time_based_key_value_store_981/solution.go:14–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12}
13
14func Constructor() TimeMap {
15 return TimeMap{
16 m: make(map[string][]*entry),
17 }
18}
19
20func (m *TimeMap) Set(key string, value string, timestamp int) {
21 entries, ok := m.m[key]

Callers 1

TestKVFunction · 0.70

Calls

no outgoing calls

Tested by 1

TestKVFunction · 0.56