Optimal game qns 2


have a llok into it and suggest changes

@sgdon142
hello sparsh,
what issue u r facing ,ur code looks correct

@sgdon142
pass ur vector v by reference to avoid tle

its wroking but samjh nhi aaya aisa hota kyu hai?

@sgdon142
check this article -> https://www.educative.io/edpresso/pass-by-value-vs-pass-by-reference