Blocked website

In [this][1] problem what does prefix mean ? Is it a string of continuous characters from the start of word to anywhere in between the word ?

I am not able to understand wording of this problem correctly
[1]: CodeChef: Practical coding for everyone

Please ask any doubts in the comment section of the problem or wait till the contest ends.

2 Likes

Yes what you are thinking is correct.
For example consider string “google”.
Then prefixes are

g

go

goo

goog

googl

google

2 Likes

Yes google is also a prefix

1 Like

Generally it takes considerable amount of time until the author answer question in the comment section . And I am not asking for more test cases or something like that I am just clarifying the meaning of a word in the problem

1 Like

Is google also a prefix?

Thanks, can you also clarify this statement : " there should be a filter that contains the name of blocked site(filter is a prefix of blocked site)." How can a filter contain name of blocked site ? for example in google the name is google

I think that was a typo.Read first 3 lines of the 3rd paragraph carefully.

1 Like