Keep it up man. Solved it on my own it was an easy question. Really appreciate your commitment to post solution daily.
@tejaschavan0073 сағат бұрын
waited, and finally 🎉
@techdose4u2 сағат бұрын
Nice :) It will come everyday
@divyanshugupta42662 сағат бұрын
Amazing And Thanks 😀😀😀
@techdose4u2 сағат бұрын
Most welcome 😊
@bunnybhonagiri2 сағат бұрын
nice sir...thankyou
@techdose4u2 сағат бұрын
Welcome 🙏🏼
@i.vigneshdavid16982 сағат бұрын
Nice explanation 1)If the array is rotated, there is only one point where a[i-1]>a[i]. 2)If the arrays is sorted and not rotated then a[n-1] > a[0]. One we just iterate the array and increase the counter if the first condition satisfies . Now check second condition, if it satisfies increment counter. Finally return counter