paths
to store path-value pairs.createPath
, first check if the path is valid (not empty or just '/').paths
; if it does, return false
.paths
(except for the root '/').paths
with the given value and return true
.get
, check if the path exists in paths
; if it does, return the associated value, otherwise return -1
.