JuniorString
Generate a String With Characters That Have Odd Counts
Given an integer n, return a string with n characters such that each character in that string occurs an odd number of times.
The returned string must contain only lowercase English letters. If there are multiple valid strings, return any of them.
Example 1
Input
n = 4Output
"pppz""pppz" is valid because
p occurs three times and z occurs once, both odd counts.Example 2
Input
n = 2Output
"xy""xy" is valid because both
x and y occur once, which is odd.Constraints
- 1 <= n <= 500