Spring Hire Sale
Limited Time Deal: Unlock all premium questions for over 30% off
$10.42$7.08
08
:
03
:
12
:
12
Back to Dashboard
Expression Tree Calculator
Medium
Given a mathematical formula represented as a JSON object, compute its result. The formula is encoded as a recursive expression tree with two node types:
Literal node: has operation "LITERAL_INT" and a field val containing an integer. ...