news paper delivery boy every day drops news paper in a society having many lanes & each lane have many houses. Design a program to provide different paths that he could follow & also suggest the path which will make him to finish his task with less effort. Solve the problem by suggesting appropriate data structures
It doesn't sound like I have enough information to make any informed suggestions. Except that you should avoid traveling the same "lane" more than once when possible.
Especially the path with the least effort sounds like you'll need to solve the shortest path problem. There are several algorithms that solve the problem. You should have a look at the wikipedia page on the shortest path problem.
This sounds like a job for the TREE data structure or possibly a QUEUE.
Join our real-time social learning platform and learn together with your friends!