Memory limit exceeded because of one variable?

In my solution for a problem I originally used 3 reference variables, which was apparently enough to cause a memory limit error. I figured out a way to get rid of one of them, and my solution was accepted. Isn't it a bit extreme that one variable causes such an error?

Comments (2)