what if we have to print true or false for a series that when it increases it strictly increases and then if it decreases it decreases strictly but not increase decrease increase or decrease increase decrease?
so basically its true if its increase decrease or decrease increase else false. I tried doing but couldnt. I can write a program that gives true for increase decrease or another program that gives true for decrease increase but could not write a single program combining both those conditions. It would be helpful if I could be guided in the proper direction. thanks