Google Foobar challenge Power Hungry - failing test no. 3 [hidden] out of 5 test cases?
问题 I am doing google foobar challenge power hungry. I am failing in one test case out of 5 test cases which are hidden. Here is my code - def answer(b): from itertools import combinations arr = [] for i in range(1,len(b)+1): comb = combinations(b,i) for j in list(comb): mul = 1 for x in j: mul *= x if mul > 1000: break else: arr.append(mul) return str(max(arr)) Task is mentioned below - Power Hungry Commander Lambda's space station is HUGE. And huge space stations take a LOT of power. Huge space