Bad memory usage checker


#1

It seems that memory consumption is calculated wrong for this task.
My solution uses only to additional pointers without recursion but still has “Memory Limit Exceeded”