Intersection Sum

Sum the intersection of two integer arrays.

Easy5/19/2024

Problem statement

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

Problem leaderboard

#
Size
%
Users
#1
56 c.
Top 11%
CorentinTh
#2
62 c.
Top 22%
cers
#3
69 c.
Top 33%
Thomasdcrt
#4
71 c.
Top 44%
Benio
#5
74 c.
Top 56%
maximec-indy
#6
79 c.
Top 67%
Seboran
#7
82 c.
Top 78%
alexisab
#8
86 c.
Top 89%
TooBusyForYou
#9
108 c.
Top 100%
ComputerKWasTaken