• Memory out in proper solution.

 

I would like to give some feedback about ...

From: https://checkio.org/mission/painting-wall/solve/

HTTP_USER_AGENT:

Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36

It is running well in Spyder (Python 3.5).

def checkio(required,operations): flag = 0 out = -1 lister = [] i = 0 for element in operations: i = i + 1 lister = lister + list(range(element[0],element[1]+1)) lister = list(set(lister)) if len(lister)>=required and flag ==0: out = i flag = 1 return out

The outcome is a memory out for the 5th test.