Using brute force I m not able to pass 2 testcases which are getting passed using efficient approach. May i know the testcases?

Using brute force I m not able to pass 2 testcases which are getting passed using efficient approach. May i know the testcases to analyze better?

hi @riagoel3999 r u getting TLE?

No It was not TLE. It was the wrong output only

hi @riagoel3999 refer