Second editorial giving memory limit exceeded


#1

On running the second editorial solution, it is giving memory limit exceeded. Is it the case with everyone?


#2

yes with me too!!!