Feature #6: Reorganizing Search Results
Implementing the "Reorganizing Search Results" feature for our "Search Engine" project.
We'll cover the following
Description
For this search engine feature, we are given all the search results to display on one page. Each page shows a maximum of twenty-five search results at a time. Multiple pages in the search results can belong to the same domain. However, the team has decided that we do not want adjacent results to be from the same domain because they are likely to be similar and might favor only one site. To give our users a wide range of results, we want to rearrange the results such that two results from the same domain are not consecutive.
Level up your interview prep. Join Educative to access 70+ hands-on prep courses.