Acceptable string
CodeChefOpen on judge ↗
Rahul has recently learned to type and log on to the Internet. He immediately entered a chat room and decided to say hello to everybody. Rahul typed the word $s$. It is considered that Rahul managed to say hello if several letters can be deleted from the typed word so that it resulted in the word **"hello"**. For example, if Rahul types the word **"hehwelloho"**, it will be considered that he said
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