MAXFUN Feb Long Challenge

Hello sir/Madam/ Codechef, Can any one see or review my code that the link is shared below.

My problem is I have written the code in java which is same concept or same thing explation given by madam in the video( but it is showing wrong answer but the sample testcases are right and I also checked the codechef sample cases also they also right but when I submitted the java solution it is showing wrong answer . But I converted the code to python which is same as madam’s code in the video it is accepting the solution.

So, My humble request is to everyone , verify or review my code and tell where I did wrong.

I got the answer guys Its a silly mistake i which I didnt checked the constrains of the problem it takes more than integer which means I have to take Long

1 Like