Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

Frequency of each element in an array #1304

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Shivani-Sharma-23
Copy link

Changes Proposed:

  • Added C++ code for counting the frequency of each element in an array.
  • The code utilizes a hash map to efficiently track the frequency of elements.

Motivation:

  • Introducing a common algorithm used in data structures and algorithms to the DSA repository.
  • This code snippet is useful for understanding hash maps and frequency counting, a fundamental concept in algorithmic problems.

Implementation Details:

  • Created a new C++ source file named Frequency-of-element.cpp.
  • Added a function countFrequency to count the frequency of elements in an array.
  • Created a new Branch "Shivani"

Copy link

welcome bot commented Jan 6, 2024

Thanks for opening this pull request! Please check out our contributing guidelines.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant