Total possibility of selecting pivot from array length n = n-1
No of Conditions where largest and smallest no is pivot = 2
( Until and unless maximum number and minimum number are pivots they can not be compared with each other)
Therefore,
Probability of not having comparison between smallest and largest number = 2/(n-1)