Please help why is this wrong?

https://www.codechef.com/viewsolution/34249855

Try CFHEF

1 Like

Sir, can you please explain this question i am not able to understand this question ?

i am not able to understand this question properly it will be a great help if you kindly explain this problem

in simple term it is asking in how many ways you can remove CHEF

1 Like

You have to count max no of “CHEF” occur in string.

1 Like