title: What is the time complexity of Looping through an array, if when I get to my final element, I have to loop through another array just once
body: <p>For an array A [0, 1 ... N-1]. I understand that looping through this will take O(n) time. But what if, as I am looping, when I get to N-1, I have to loop through another array B [0, 1 ... N-1]? </p>
  
  <p>My more specific question, is that when I get to N-1, I have to copy the elements of array A into array B and so I was wondering what the time complexity of this is.</p>
  
  <p>Thank you!</p>