Evaluate a Formula AST with Variables

Quick Overview

Evaluate a Boolean formula AST that also resolves integer or Boolean variables from an immutable environment. Preserve short-circuit behavior so missing names in skipped branches do not fail, while evaluated unknown variables raise the required error.

Evaluate a Formula AST with Variables

Company: Sigmacomputing

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: medium

Interview Round: Onsite

Overview: Evaluate a Boolean formula AST that also resolves integer or Boolean variables from an immutable environment. Preserve short-circuit behavior so missing names in skipped branches do not fail, while evaluated unknown variables raise the required error.

|Home/Coding & Algorithms/Sigmacomputing
Sigmacomputing logo
Sigmacomputing
May 12, 2026
mediumSoftware EngineerOnsiteCoding & Algorithms
2
0
Loading...

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...