Author: Harsh Shah
Tester: Aniket Marlapalle
Editorialist: Aniket Marlapalle
Given an array of elements check if it is sorted or not.
It’s a very easy problem we just need to check if the heights of the toys are arranged in the non-decreasing order or not. That we can do by just checking a number its previous number in the array if it does not follow the desired order (Ai < Ai-1)then print “Angry” else print “Happy”.
AUTHOR’S AND TESTER’S SOLUTIONS:
Author’s solution can be found here