Implement a hierarchical key-value store where each path follows a directory-like structure (e.g., /a/b/c). The store begins with a root path /, which always exists with a string value "root". Operations include creating paths under existing parents, setting values on existing paths, retrieving values, and deleting leaf paths only (except the root).
Implement the PathKeyValueStore with the specified behaviors:
Ask AI Assistant

Ask AI Assistant
Ask me anything about this coding question!
Test Cases
Input
Output
Expected