That would be O (n log n)
You perform a performance operation O (log n) n times and multiplication is done using Big O, so O (n) * O (log n) = O (n log n)
It is important to note that there really is no need to distinguish between m and n if you are looking at two arrays of different sizes. The reason is that m and n are both constants, and they are asymptotically equivalent if you were to calculate their growth rates.
source share