← 返回 bytedance 的题目列表24 Game
类型:online_judge
Given four integers, use addition, subtraction, multiplication, division, and parentheses to determine if it's possible to reach the value of 24. Write a function to return a boolean. The four integers are between 0 and 9 inclusive. Provide at least five distinct test cases with outputs being True or False.
Example
Input
[8, 1, 6, 6]