-
Notifications
You must be signed in to change notification settings - Fork 7
search.py
Over here we are talking about search.py code.
There is only one class in search.py, name Search. Here are the following methods in the class:
word: It is a string, where users can write the name of the movie.
Returns a list of movies, which starts with the given word.
word: It is a string, where users can write the name of the movie.
visitedWords: a set (unordered hash-map) of movies, which should not be the part of the output.
Returns a list of movies, which have the input word anywhere in its title.
word: It is a string, where users can write the name of the movie.
Returns a list of movies, where the first few movies will be the movies that start with the input word, followed by the movies which have the input word anywhere in its title.
word: It is a string, where users can write the name of the movie.
Returns the first 10 results from the method results.
Copyrights @XYZ 2020