Search
⌘K

Leetcode 1440. Evaluate Boolean Expression

Given a string boolean expression using literals 't'/'f', operators '!' (NOT), '&' (AND), '|' (OR) and parentheses with comma-separated operands, evaluate it to a boolean result. The core challenge is parsing and correctly evaluating nested, variadic and unary operators (typically solved with recursion or a stack-based parser).


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.