Skip to content

Files

Latest commit

07ea584 · Jun 23, 2018

History

History

IntersectionOfTwoArraysII

Intersection Of Two Arrays II

The solutions is like below:

  1. hashmap, when nums2 is stored on disk this way will be better
  2. two pointer if the arrays is already sorted, when the size are not different this way will be better