If distance between the largest and smallest element of arr [ ] till i - th index is equal to i
if ( Max - Min + 1 == i ) : NEW_LINE INDENT print ( " True " , end = " ▁ " ) NEW_LINE DEDENT else : NEW_LINE INDENT print ( " False " , end = " ▁ " ) NEW_LINE DEDENT