Haven't passed vector by reference, but still solution works


#1

In the solution approach, it was advised to pass the current vector by reference.
But I passed it as value only and got AC. Should I be careful next time or it always works.
When will it fail?