I am getting TLE in 4/6 test cases.
the link of my code ->
Getting TLE in some cases
ur logic was correct
u just had to put a check a for k==n and k>n
that i have done in this code
if your doubt is solved, please mark it as resolved
I am getting TLE in 4/6 test cases.
the link of my code ->
ur logic was correct
u just had to put a check a for k==n and k>n
that i have done in this code
if your doubt is solved, please mark it as resolved