Generate a String With Characters That Have Odd Counts Leetcode Solution

Problem Statement   In this problem, we are given a length. We have to generate a string that has all characters an odd number of times. For example, aaaaab is a valid string because count(a)=5 and count(b)=1. But, aaabbc is not a valid string here because count(b)=2 which is an even …

Read more