← All problemsSign in

Awesomeness of Strings

Awesomeness of a string is defined by a pair of a character C and an integer F, satisfying the following conditions : - C must belong to the given string S and there must be a substring subS of S having length equal to F such that all the characters in subS are equal to c. - F should be as large as possible. Your aim is to maximize the value of F. If there are more than one c whose maximum F

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start