In the above Search List program return, the count of how many instances of same value are

Question:

In the above Search List program return, the count of how many instances of same value are found else if value not found then return 0.

For example, if the value passed is “4”. The elements in the list are 1,2,4,3 & 4. The program should return 2.

In place of return true in the above program increment a counter and then return its value.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: