Simple & easy solution🔥🔥
\n\n# Code\npython3 []\nclass Solution:\n    def judgePoint24(self, cards: List[int]) -> bool:\n        n = len(cards)\n        if n == 1:\n            if abs(2
\n\n# Code\n```python3 []\nclass Solution:\n    def judgePoint24(self, cards: List[int]) -> bool:\n        n = len(cards)\n        if n == 1:\n            if abs(24 - cards[0]) < 0.001:\n                return True\n            return False\n        \n        for i in range(n):\n            for j in range(i + 1, n):\n                c1 = cards[i]\n                c2 = cards[j]\n\n                arr = [c1 + c2, c1 - c2, c2 - c1, c1 * c2]\n                if c1:\n                    arr.append(c2 / c1)\n                if c2:\n                    arr.append(c1 / c2)\n                \n                for val in arr:\n                    nextCards = [val]\n\n                    for k in range(n):\n                        if k not in (i, j):\n                            nextCards.append(cards[k])\n                        \n                    if self.judgePoint24(nextCards):\n                        return True\n        return False\n        \n```
['Array', 'Python3']