The code is failing in some of the test cases

Test cases are- 0,2,3 and 5

link to ide- https://ide.codingblocks.com/s/348965

Hey @himanshu_goyal
Your code is in Java & I am proficient in C++, so please reopen another doubt for the same.

Hey! Can you do me a favour. Please send me the test cases with answers such that i can debug it on my own. As most of the TA’s code on either C++ or python.

Hey @himanshu_goyal
Input
1
10
24 354 6 91823749 293847 1923874 287 29837 2987 1
56 57 465 759823 82 7 293847 928374 29 23874
98765410

Output
342894233

Input
3
3
5 8 2
32 54 6
2
3
1 2 3
4 5 6
6
3
24 354 6
56 57 465
98765432

Output
8
714
257599514

Hey @himanshu_goyal
If this is still not resolved then open another doubt and mention JAVA in Title along with the issue

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

On debugging the code again. I got the output of the input:1 10 24 354 6 91823749 293847 1923874 287 29837 2987 1 56 57 465 759823 82 7 293847 928374 29 23874 98765410

output as: 3342894233

Can you please specifically send me the test case for test case: 0,2,3 and 5 as code is still failing in those cases.

Bro open it again and mention java doubt
I am sure someone who knows java will take it :slight_smile:

I already sent you the the small testcase files on which its failing

Rest are big input files and cant be used for debugging

link to ide: https://ide.codingblocks.com/s/350189

I again took it by mistake
Reopen it :sweat:

No worries, actually in one of my previous doubts i mentioned java, and no TA was ready to take that doubt and I has to wait for almost 2 weeks to get a response from support

Which course u are doing btw?
I guess java and c++ courses are different

Please send the the test cases for large input as i just wanted to check the answers for each test case and where it is failing.

Here use this for reference

Give custom input and get correct output for it which u can use to debug ur code

I am doing Competitive Programming by Prateek and Apar Kamal. I don’t think so that there is any specific course java in competitive programming

@himanshu_goyal Yup correct …

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.