Boolean Evaluate Expression

Computer Mathematics Medium 2 views
Back to Questions
Next De Morgan Apply Easy N

Problem Description

Evaluate a boolean expression with AND/OR/NOT on 0/1 values.

Input Format

Expression string and variable values.

Output Format

0 or 1.

Sample Test Case

Input:
A AND NOT B with A=1 B=0
Output:
1

Constraints

Expression length

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Next