exceeds time limit
can anyone tell me where i can optimize?
also list in python isnt the same as an array in C
so i have to initialize the entire list with None (ensuring that it obeys the constraints i.e. a list of 10^5 Nones). So does this initialization cause the time limit to exceed?
any help would be appreciated