Educative

Why the first solution is called doble interaction? and why the second is more efficient approach?

Solution #1: Double Iteration #

why is called double interaction if we iterate over the list 1 time

Solution #2: Two Pointers #

why is more efficient approach if both solutions have the same space and time complexity?