In this solution why we take max(ct-1,(t-1)/2)??
Sakshi and Art Solution
what’s happen if we take only (t-1)/2 rather then taking max of cnt-1 and this?
In this solution why we take max(ct-1,(t-1)/2)??
what’s happen if we take only (t-1)/2 rather then taking max of cnt-1 and this?