Sum the intersection of two integer arrays.

Easy5/19/2024

Given two integer arrays, return the sum of the intersection of both arrays.

Note:

- the integers can be negative
- arrays can have duplicates
- the intersection can be empty
- the arrays can be of different lengths

# | Size | % | Users |
---|---|---|---|

#1 | 56 c. | Top 11% | |

#2 | 62 c. | Top 22% | |

#3 | 69 c. | Top 33% | |

#4 | 71 c. | Top 44% | |

#5 | 74 c. | Top 56% | |

#6 | 79 c. | Top 67% | |

#7 | 82 c. | Top 78% | |

#8 | 86 c. | Top 89% | |

#9 | 108 c. | Top 100% |

© 2024 Corentin Thomasset