You are viewing a single comment's thread. Return to all comments →
Hey it's mentioned in the problem, if you do not find any element to its left or right. It should be considered as zero.
In this case for 1 left = 0 right = 0
both are same, print Yes
Seems like cookies are disabled on this browser, please enable them to open this website
Sherlock and Array
You are viewing a single comment's thread. Return to all comments →
Hey it's mentioned in the problem, if you do not find any element to its left or right. It should be considered as zero.
In this case for 1 left = 0 right = 0
both are same, print Yes