Search
⌘K

Leetcode 679. 24 Game

Given four numbers 1–9, determine whether you can permute them and insert binary operators (+, −, *, /) and parentheses to form an expression that evaluates to 24 (division is real; no concatenation or unary minus). This is a combinatorial search/backtracking problem over permutations and binary operation orders, requiring careful handling of floating-point comparisons.


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.