Tap here to switch tabs
Problem
Submissions

Problem: Generate a String With Characters That Have Odd Counts

med
30 min
Try to solve the Generate a String With Characters That Have Odd Counts problem.

Statement

Given an integer n, return a string of length n such that every character in the string appears an odd number of times.

The returned string must consist solely of lowercase English letters. If there are multiple valid strings, you may return any of them.

Constraints:

  • 1≤1 \leq n ≤500\leq 500

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Generate a String With Characters That Have Odd Counts

med
30 min
Try to solve the Generate a String With Characters That Have Odd Counts problem.

Statement

Given an integer n, return a string of length n such that every character in the string appears an odd number of times.

The returned string must consist solely of lowercase English letters. If there are multiple valid strings, you may return any of them.

Constraints:

  • 1≤1 \leq n ≤500\leq 500