Search
⌘K

Leetcode 2956. Find Common Elements Between Two Arrays

Given two integer arrays, return two counts: how many indices in nums1 have values that appear anywhere in nums2, and how many indices in nums2 have values that appear anywhere in nums1. Count occurrences per index (duplicates are counted multiple times).

Asked at:

BNSF

BNSF


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Early January, 2026

BNSF

BNSF

Junior

Your account is free and you can post anonymously if you choose.