smv1999 / CompetitiveProgrammingQuestionBank

This repository contains all the popular Competitive Programming and DSA questions with solutions for your Coding Interview Preparation.

Home Page:https://smv1999.github.io/CompetitiveProgrammingQuestionBank/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sorting Elements of an Array by Frequency in C++

ishikasinha-d opened this issue Β· comments

πŸš€ Feature

Given an array of integers, sort the array according to frequency of elements. That is elements that have higher frequency come first. If frequencies of two elements are same, then smaller number comes first.

Have you read the Contributing Guidelines on Pull Requests?

YES

Motivation

Medium-hard level ques asked in Oracle Zycus.

Pitch

Will solve in C++ using hashing.

Hello @ishikasinha-d,
Thank you for opening an issue. πŸ₯³
To get assigned to this particular issue please use /assign
Check this guide before contributing.

/assign

This issue has been assigned to @ishikasinha-d!
It will become unassigned if it isn't closed within 17 days. A maintainer can also add the pinned label to prevent it from being unassigned.