I am very new to time complexities and I couldn't find a detailed explanation on how to calculate the T(n) of a given algorithm.
def search(k, lst_1, lst_2):
   n = len(lst_1) + len(lst_2)
   
   for i in range(0, math.ceil(n/2)):
       if lst_1[i] == k:
          return 2 * i
   for j in range(0, math.floor(n/2)):
       if lst_2[j] == k:
          return 2 * i + 1
   return -1
This is not a "do my hw" question. I actually want to learn how to calculcate the T(n) of this algorithm.
 
    