Occurrences in an array

[1, 3, 1, 2] and 1 → 2

You can also choose a level by clicking its number.

About the course

Description
How many times a value occurs in an array
More information
Arrays are indexed from zero. Sorting is ascending (from the smallest) unless stated otherwise.
Sample question
[1, 3, 1, 2] and 1 → 2
Author
Jiří Preisler
Version
1.0