Algorithm: Finding median in a sorted array with duplicates
Yes. Even with duplicates, the process of finding median is same. See  this link - https://math.stackexchange.com/questions/1191119/how-to-find-the-median-of-three-numbers-if-one-of-them-appears-twice