3 Questions
What is the task given in the problem statement?
The task is to find the minimum number of clicks required to reach the end web page from the start web page.
What should be printed if the end web page cannot be reached from the start web page?
-1 should be printed as the output.
What are the constraints for the number of web pages?
The number of web pages should be greater than 0.
Test your knowledge on web page navigation and find out how to calculate the minimum number of clicks required to reach a specific web page from another.
Make Your Own Quizzes and Flashcards
Convert your notes into interactive study material.
Get started for free