Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sort Characters by Frequency in Python String #37

Open
harshadagd opened this issue Oct 24, 2023 · 2 comments
Open

Sort Characters by Frequency in Python String #37

harshadagd opened this issue Oct 24, 2023 · 2 comments
Assignees

Comments

@harshadagd
Copy link

The characters in the string should be sorted based on the following conditions.

  1. Sort the characters in the string by their frequency of occurrences (the number of times characters have occurred in the string).
  2. If the two different characters have the same frequency, these letters should be sorted based on their alphabetical order

Input String: csestack
Output String: aektccss

@adt2936
Copy link

adt2936 commented Oct 25, 2023

@harshadagd Can you assign me this issue ?
Aditi Shivapurkar
UEC2023301
FY
Cummins College of Engineering, Pune

@harshadagd
Copy link
Author

ya sure, Complete the PR by tagging this issue. Happy contribution

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

No branches or pull requests

2 participants