I am getting Wrong Answer on submission.

Problem link:http://www.lightoj.com/volume_showproblem.php?problem=1039

Code:http://ideone.com/1iMkOX

I implemented the BFS inside the main function instead of coding it in a seperate function.

Recommended Answers

All 2 Replies

It isn't helpful to post a link to a site that requires registration and login to view the contents. Please post a copy or snapshot of the question here.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.