my code is giving tle in 3 test case link is https://ide.codingblocks.com/s/225311
Giving tle lkcnkdncvkn
c++ code
all test case work
made updates to ur code 1 is giving error possibly becuase of range of int ( not every good at JAva) so couldn’t figure out
it does not show any tle but giving wrong answer in one test case
please read my reply
i am not good at java so possibly there is a problem in taking Long
refer to c++ code
okk thanks there was long related mistake now all test case are getting passed
1 Like