Evaluate Variable Assignments

Given a set of variable assignments and a query variable, return the final integer value of that variable.

Each assignment has the format:

variable=value

Where:

  • variable consists o...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: