Time complexity for finding min/max in an array of strings
Suppose I have an array/list that consists of string elements like:
arr=[“abcd”,”abdd”,”abba”, “abca”] and I want to find the min and max element here (i.e. abba and abdd), what will be the time complexity of running a min(arr)/max(arr) function here.