← All problemsSign in

Contiguous Word

Aman loves solving English puzzles. His teacher taught him a new topic today called Contiguous Words. A contiguous word is a word in which all the occurrences of each letter of the word is together (i.e. no same letter should be separated by one or more other letters). For example, "aaabb" and "abc" are contiguous word. "bitotsav" is not a contiguous word since the 't's don't occur together. 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