Marks :10
: 2 | : 2
We are given an array which contains integers in ascending order followed by integers in descending order.
All the integers in the array are unique and do not occur multiple times.
Can you find out the product of the sum of values in ascending part and descending part modulo $$$10^9+7$$$.
First line contains a single integer corresponding to integer N.
Second line contains N space separated integers corresponding to the values in the given array.
Constraints
$$$ 3 \le N \le 100000 $$$
$$$ 1 \le arr[i] , X \le 10^9 $$$
A single integer corresponding to the product of sum of ascending and descending parts of the array.
7 3 8 14 12 10 7 4
1175
You need to login to view your submissions.
You need to login to view all submissions.
Result : Executed
Feel something is wrong with the test cases?
Result : Accepted
Test Cases :
But to Run or Submit the Problem, you need to Log In.
Continue to Log InYour challenge has been submitted successfully.
You will get a response soon via WhatsApp or Email.
Do let us know your issue.