Sort by

recency

|

40 Discussions

|

  • + 1 comment

    DSU + DFS + Binary shifting Solution (https://pastebin.com/eLhJxpHm)

  • + 0 comments

    Here is my solution in java, javascript, python, C, C++, Csharp HackerRank Roads in HackerLand Solution

  • + 0 comments

    Here is the solution of Roads in HackerLand Click Here

  • + 0 comments

    The given constraint C_i < M is just... wrong.

    This problem is no fun to solve without a reasonable and correct constraint on the number of distinct roads there are. If the lengths are all distinct powers of 2, then there really can't be more than 64 of them without forcing the program to use arbitrary-length integers.

  • + 1 comment

    Can somemone provide working c++ solution which passes all test cases.