Get Mystery Box with random crypto!

max_li=[] def longest_subarray(arr, d): (i, j, e) = (0, 1, 0) | CODING SOLUTION - Placement Jobs & Materials

max_li=[]
def longest_subarray(arr, d):
(i, j, e) = (0, 1, 0)
for i in range(d - 1):
if arr[i] == arr[i + 1]:
j += 1
else:
j = 1
if e < j:
e = j
return e
temp=li.copy()
for each in li:
max_li.append(longest_subarray(temp, len(temp)))
temp=li.copy()
while(True):
try:
temp.remove(each)
except:
break
print(max(max_li))

Python
Ali army
Telegram - t.me/codingsolution_IT