CHEF AND BABY
CodeChefOpen on judge ↗
Chef and his family have added a new member to their family. And now Chef is deciding to give him a new name, as it will be easy and unique for them to understand. He has a String $S$ of length $L$, He want the longest homogeneous substring of $S$. *NOTE*: A homogeneous substring is a string that consists of only one type of character. ###Input: - First line will contain $T$, number
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start