DCGAME - Editorial

Any comments/suggestions on how I can optimize my solution to pass the last subtask ? I did stack span as well as binary search and linear sum as well. But last sub task is throwing TLE !


Nice Editorial


bhosri k editorialist bohot harami hote hai koi example nahi kuch nahi editorial k naam par aapni girlfriend ki kahani likh dete h…