Can I get some hint in solving this question, the approach which is in my mind is quite lengthy. What I have thought of is an approach in which I iterate through all the subarrays and then check for increasing decreasing properties.
Biotonic Array Doubt
For the question of Prime Visits ,I have used the concept of sieve of erasthones but still, I am getting the wrong answer. My code link is given below https://ide.codingblocks.com/s/72010
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.