Ayush7614 / Daily-Coding-DS-ALGO-Practice

A open source project🚀 for bringing all interview💥💥 and competative📘 programming💥💥 question under one repo📐📐
https://daily-ds-algo.github.io/DS-Algo-Website/
MIT License
316 stars 477 forks source link

A. Chat room (CodeForces) #1377

Open abhib074 opened 3 years ago

abhib074 commented 3 years ago

Vasya has recently learned to type and log on to the Internet. He immediately entered a chat room and decided to say hello to everybody. Vasya typed the word s. It is considered that Vasya 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 Vasya types the word "ahhellllloou", it will be considered that he said hello, and if he types "hlelo", it will be considered that Vasya got misunderstood and he didn't manage to say hello. Determine whether Vasya managed to say hello by the given word s.

Input The first and only line contains the word s, which Vasya typed. This word consisits of small Latin letters, its length is no less that 1 and no more than 100 letters.

Output If Vasya managed to say hello, print "YES", otherwise print "NO".

abhib074 commented 3 years ago

I am a participant of LGM SoC 21. I want to solve this issue in C++ Language.

Arushi247 commented 3 years ago

@Ayush7614 I'd like to work on this issue in C language under HCSSoC. Please assign me this issue.

TasnimAnas commented 3 years ago

I would like to solve this in JAVA. I'm a LGMSOC participant

Bigbolokbob commented 3 years ago

Hi