Boolean Evaluate Expression
Computer Mathematics
Medium
2 views
Problem Description
Evaluate a boolean expression with AND/OR/NOT on 0/1 values.
Input Format
Expression string and variable values.
Sample Test Case
Input:
A AND NOT B with A=1 B=0
Constraints
Expression length
Official Solution
Parse with precedence: NOT > AND > OR. Use stack method.
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!