Please Login in order to post a comment
This is my solution in java: https://github.com/AmitRoy3370/HackerRank/blob/master/Road%20Repairing
Detailed video solution and code walkthrough in english. Question and the approach to solve are also discussed. Make sure to check it out. https://www.youtube.com/watch?v=NY4LKv4eT48&feature=youtu.be
There seems to be issue with testcases.
Example testcase 3:
7 8 2 6 4 5 1 7 2 4 4 7 1 1 1 2 7 7 1 1 6
In this all cities are connected to each other. No need to repair any roads. But still answer is 1 instead of 0. Moderators, please fix this.
No more comments
Seems like cookies are disabled on this browser, please enable them to open this website
This is my solution in java: https://github.com/AmitRoy3370/HackerRank/blob/master/Road%20Repairing
Detailed video solution and code walkthrough in english. Question and the approach to solve are also discussed. Make sure to check it out. https://www.youtube.com/watch?v=NY4LKv4eT48&feature=youtu.be
There seems to be issue with testcases.
Example testcase 3:
7 8 2 6 4 5 1 7 2 4 4 7 1 1 1 2 7 7 1 1 6
In this all cities are connected to each other. No need to repair any roads. But still answer is 1 instead of 0. Moderators, please fix this.