I already read Does time complexity changes as we change our programming language?
but my question is if time complexity doesn't change according to language then which is the base language on which we should calculate time complexity. is it C/C++ or any other?
To get element in array in java I use .contains
method. so does that mean its O(1) ? if not then how will i know that what logic is running behind .contains
or any other function. who will decide time complexity in such cases?