Skip to content

Latest commit

 

History

History

IntersectionOfTwoArraysII

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

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