Draw an algorithm to find a word in the dictionary
Answers
Answered by
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
0
Explanation:
I hate you aditya hate you
Similar questions