package
Version:
v1.5.0
Opens a new window with list of versions in this module.
Published: Nov 25, 2019
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
< Previous
Next >
Given two arrays, write a function to compute their intersection.
Example 1:
Input: nums1 = [1,2,2,1], nums2 = [2,2]
Output: [2]
Example 2:
Input: nums1 = [4,9,5], nums2 = [9,4,9,8,4]
Output: [9,4]
Note:
- Each element in the result must be unique.
- The result can be in any order.
[Sort]
[Hash Table]
[Two Pointers]
[Binary Search]
Similar Questions
- Intersection of Two Arrays II (Easy)
- Intersection of Three Sorted Arrays (Easy)
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.