TheAlgorithms / Ruby

All algorithms implemented in Ruby
MIT License
1.19k stars 294 forks source link

Sorted arrays intersection: two-pointers approach #129

Closed vbrazo closed 3 years ago

vbrazo commented 3 years ago

Another way of solving this algorithm https://github.com/TheAlgorithms/Ruby/pull/125 but this time with a two-pointers approach.