Computer Science, asked by cosmosaditya3060, 3 months ago

Draw an algorithm to find a word in the dictionary

Answers

Answered by drajdeep2003
0

Answer:

dict[] = { find, a, geeks, all, for, on, geeks, answers, inter }

Input: str[] = { “find”, “all”, “answers”, “on”, “geeks”, “for”, “geeks” };

Output: YES

all words of str[] are present in the dictionary so the output is YES

Input: str = {“find”, “a”, “geek”}

Output: NO

In str[], “find” and “a” were present in the dictionary but “geek” is not present in the dictionary so the output is NO

Hope this helps you

Please mark this answer as the Brainliest❤️

Answered by nk3356640
0

Explanation:

I hate you aditya hate you

Similar questions