Find Longest Self-Contained Substring

hardSolve on LeetCodeLast edited: August 2, 2025