Tap here to switch tabs
Problem
Submissions

Problem: Generate a String With Characters That Have Odd Counts

Generate a String With Characters That Have Odd Counts asks you to build a lowercase string of the given length so every character appears an odd number of times.

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

Generate a String With Characters That Have Odd Counts asks you to build a lowercase string of the given length so every character appears an odd number of times.

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