this is the code that i am using …it is in O(n*n)
and hencee giving tle …but how this code can be converted to O(n)
this is the code that i am using …it is in O(n*n)
and hencee giving tle …but how this code can be converted to O(n)