Welcome to the Hacktoberfest 2023 Competitive-Programming Cohort for Cummins College and MMCOE students! To request issue assignment, create a pull request, providing: 1. Full Name 🧑🎓 2.Email 📧 3.College ID (RNO) 🔢 4.Branch of Study.📚 5. Year 📆 .The Cummins College and MMCOE students' PRs will be considered only. Thank you!
9
stars
69
forks
source link
Issue #79 : Added Code for Reorganizing String in C++ #232
First I have calculated the frequency of each character. Then have placed character with high frequency on alternate positions, and then the rest of the character. If the arrange is not possible then I have returned an empty string "".
79
First I have calculated the frequency of each character. Then have placed character with high frequency on alternate positions, and then the rest of the character. If the arrange is not possible then I have returned an empty string "".