I started with building the logic to solve the problem and figured that then I wrote the java code for the algorithm but I got the verdict as Time Limit exceeded on pretest 7 and then I tried the same algorithm with C++ and I got shocked by the verdict as it accepted the code without any error. This is somewhat unfair for the java developers . For smooth verification of my aligations I am giving both the submission I'D s . Java code — 278791943 C++ code — 278810043
SecondThread made a whole video talking about problems like this in java and why he's switching to kotlin
C++ is much more faster than Java
Don't bring a knife to a gunfight.
yup I also faced the same issue, but don't know how this submission got AC 278851620, whereas this 278850729 is getting TLE
bro after seeing your profile i got to know that you are one of the person who does cheating in contest by seeing the skipped ... solutions.. that shows you cheated in contest ..
for this query, let's not pay attention to whether this person cheats or not, but pay attention to solving the problem he is asking, or else people will focus more on that instead of finding out the solution to the java discrepancy.
Here you go — 278926956