Google-Developer-Student-Club-CCOEW / Competitive-Programming-2023-GDSC-CUMMINS-X-GDSC-MMCOE

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

Closed srushtikage closed 1 year ago

srushtikage commented 1 year ago

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 "".