We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
My solution couldn't pass many of the test cases because I was not prining a new line at the end! The solution got accepted afte I added System.out.println() at the end!
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Breadth First Search: Shortest Reach
You are viewing a single comment's thread. Return to all comments →
My solution couldn't pass many of the test cases because I was not prining a new line at the end! The solution got accepted afte I added System.out.println() at the end!