Cannot get this case to work [3,3,8,8] what combination would this be?
class Solution:\n    def judgePoint24(self, cards: List[int]) -> bool:\n        \n        #basically create a stack of operations and indices used and based \n 
class Solution:\n    def judgePoint24(self, cards: List[int]) -> bool:\n        \n        #basically create a stack of operations and indices used and based \n        self.s = []\n        \n        #initial condition\n        for i,card in enumerate(cards):\n            self.s.append(([i],card))\n            \n        self.list2 = []\n        while(self.s):\n            \n            indices_used,total = self.s.pop(0)\n            print(total)\n            #do all operations with indices that are not seen\n            if total == 24 and len(indices_used) == 4\n                return True\n            if len(indices_used) == 2:\n                self.list2.append((indices_used,total))\n                \n            for i,v in enumerate(cards):\n                if i not in indices_used:\n                    #do all operations\n                    indices_used_2 = indices_used.copy()\n                    indices_used_2.append(i)\n                    self.s.append( (indices_used_2.copy(), v + total) )\n                    self.s.append( (indices_used_2.copy(),v*total) )\n                    self.s.append( (indices_used_2.copy(),v - total) )\n                    self.s.append( (indices_used_2.copy(),total - v) )\n                    if total != 0:\n                        self.s.append( (indices_used_2.copy(), v/total) )\n                    if v != 0:\n                        self.s.append( (indices_used_2.copy(), total/v) )\n        \n        for tup in self.list2:\n            indices_used,total = tup\n            \n            for tup in self.list2:\n                indices_used_2,total2 = tup\n                if indices_used[0] != indices_used_2[1] and indices_used[1] != indices_used_2[0] \\\n                and indices_used[0] != indices_used_2[0] and indices_used[1] != indices_used_2[1]:\n                    if  total + total2 == 24 or total2 - total == 24 or total - total2 == 24 or total*total2 == 24:\n                        return True\n                    if (total != 0 and total2/total == 24) or (total2 != 0 and total/total2 == 24):\n                        return True\n            \n        return False\n
[]