MY CODE
https://ide.codingblocks.com/#/s/19815
PROBLEM
https://hack.codingblocks.com/contests/c/474/194
I have written a code wherein the program checks whether in a sequence of integers there more than 1 troughs (i.e. opposite of peaks), so whenever two or more troughs are encountered, it automatically breaks the loop and returns answer as false.
But this seems to work only on some cases.
Kindly Help with this.
Also any other method to solve this problem will be much appreciated.