• + 3 comments

    how did you decide to loop through keyboards first and then drives. Shouldn't the array that is larger, should be the outer loop and the smaller in the inner loop? Your code passes all the test cases, but this was how I was thinking. I had the exact same code except, I was first checking the sizes of both arrays to determine how to iterate and compare between two.