The code is giving corect answer but not passing any test cases

dude u are doing O ( N ^ 2 ) time complexityy code

please read from here the logic and explanation

thank u so much mam …i understood the logic

1 Like