Implement a data structure supporting the following operations:

LeetCode 432. All Oone Data Structure

Inc(Key) – Inserts a new key with value 1. Or increments an existing key by 1. Key is guaranteed to be a non-empty string.
Dec(Key) – If Key’s value is 1, remove it from the data structure. Otherwise decrements an existing key by 1. If the key does not exist, this function does nothing. Key is guaranteed to be a non-empty string.
GetMaxKey() – Returns one of the keys with maximal value. If no element exists, return an empty string “”.

继续阅读

2019·年度总结

也许是周围的人都太优秀了,给自己一种紧张的压迫感。总想着追赶别人,所以总是催促自己,以至于做事情总想快快地做,快快地做。2020 年让自己一步一步地来,一点一点地来。

继续阅读