Ayush7614 / Daily-Coding-DS-ALGO-Practice

A open source project🚀 for bringing all interview💥💥 and competative📘 programming💥💥 question under one repo📐📐
https://daily-ds-algo.github.io/DS-Algo-Website/
MIT License
322 stars 474 forks source link

Python | Count occurrences of an element in an array #1074

Open ambivert-sam opened 3 years ago

ambivert-sam commented 3 years ago

Is your feature request related to a problem? Please describe. Want to add Python Count occurrences of an element in an array

Describe the solution you'd like Problem Statement :
Write a Python program to get the number of occurrences of a specified element in an array. Sample Output: Original array: array('i', [1, 3, 5, 3, 7, 9, 3]) Number of occurrences of the number 3 in the said array: 3

Describe alternatives you've considered The question is from GFG since I will be implementing and modifying this question by taking array input from users

Additional context I would like to contribute and work on this issue as a participant of LGM SOC'21 will you please assign it to me

Programming language

Jagannath8 commented 3 years ago

Can I do in Java? I'm a participant of LGM Soc21.

KarthikTadala commented 3 years ago

Im preparing for my coding interviews and it would really help me if you assign this question to me Kindly assign me this issue under LGMSOC