Nested Store Class

Programming Interview Hard 7 views
Back to Questions

Problem Description

You will receive q commands: SET path value, GET path. Path is dot separated. Create Store class to handle. For GET output value or NOT FOUND.

Input Format

First line q. Next q lines commands.

Output Format

Outputs for GET.

Sample Test Case

Input:
6 SET user.name Ravi SET user.age 20 GET user.name GET user.city SET user.city Delhi GET user.city
Output:
Ravi NOT FOUND Delhi

Constraints

q

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next