There are many othe testcases too:
like
7
1 2 3 -2 4 10 16
Sequences are 1 2 3 and -2 4 10 16 (just simply concatenated in testcase)
Answer is ‘Yes’ but few submissions that i checked gave ‘No’.
1
1.999999
1000000000000000000
Check one cpp and one java solution and you will see the difference in output section.
i tried one cpp and one java(Java and cpp)
I think this is the issue with constaint in the test case file.
but my output is matched with the cpp one, and i think there may be some mistake in test file like this (some overflow type).
Like even though I have a solution, I feel that there can be cases where it might fail, I want to know if an absolutely correct solution exists for this problem ?(many AC solutions failing simple tests)