It was my understanding that a condition equating operation would always be O(1) as we are simply checking if LHS is same as RHS.
But this scenario got me thinking.
if list1 == list2:
print("Hi")
I’m assuming it’s either O(1) as I initially thought, or it is O(max(len(list1),len(list2)).
Which one of these is correct(unless both are wrong ofc)?
2