FunctionRacerProblemsRace

Same Positions

BeginnerNumPyPython

a and b are two arrays of the same length. Return how many positions i have a[i] == b[i], as an int.

Example 1

a [1,2,3,4]
b [1,0,3,0]
returns 2

They match at positions 0 and 2.

Constraints

Race itor take your time

Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.

More NumPy problems