Search⌘ K
AI Features

Map Sum Pairs

Map Sum Pairs asks you to maintain string-integer pairs, updating existing keys and returning the total value of every key that starts with a given prefix.

Statement

Design a data structure that supports the following operations:

    ...