Algorithm - count elements of an Array
Video
Suscríbete
Exercise
Given an Integer arr, count how many elements x there are, such that x is also in arr. If there're duplicates in arr, count them separately.
Example 1
Input: arr = [1,2,3]
Output: 2
Explanation:
There are 2 such element...
vladi.hashnode.dev1 min read