You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/com/fishercoder/solutions/_1374.java
-23Lines changed: 0 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -1,28 +1,5 @@
1
1
packagecom.fishercoder.solutions;
2
2
3
-
/**
4
-
* 1374. Generate a String With Characters That Have Odd Counts
5
-
*
6
-
* Given an integer n, return a string with n characters such that each character in such string occurs an odd number of times.
7
-
* The returned string must contain only lowercase English letters. If there are multiples valid strings, return any of them.
8
-
*
9
-
* Example 1:
10
-
* Input: n = 4
11
-
* Output: "pppz"
12
-
* Explanation: "pppz" is a valid string since the character 'p' occurs three times and the character 'z' occurs once. Note that there are many other valid strings such as "ohhh" and "love".
13
-
*
14
-
* Example 2:
15
-
* Input: n = 2
16
-
* Output: "xy"
17
-
* Explanation: "xy" is a valid string since the characters 'x' and 'y' occur once. Note that there are many other valid strings such as "ag" and "ur".
0 commit comments