i tried to write code for the given question but am unable to get the desired output. Can you plz help me with this
Unable to get the desired output
hello @manav_sharma
a) u r not reading array elements correctly.
b) also declare ur e variable properly , 100 is not sufficnet e.
e= maxx in array * (p*(p+1)/2)
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.