1763. Longest Nice Substring
Description
**Input:** s = "YazaAay"
**Output:** "aAa"
**Explanation:** "aAa" is a nice string because 'A/a' is the only letter of the alphabet in s, and both 'A' and 'a' appear.
"aAa" is the longest nice substring.**Input:** s = "Bb"
**Output:** "Bb"
**Explanation:** "Bb" is a nice string because both 'B' and 'b' appear. The whole string is a substring.**Input:** s = "c"
**Output:** ""
**Explanation:** There are no nice substrings.ac
Previous1762. Buildings With an Ocean ViewNext1764. Form Array by Concatenating Subarrays of Another Array
Last updated