Short Palindrome Discussions | Algorithms | HackerRank

Short Palindrome

  • + 0 comments

    input format is

    1)The first line contains TT, denoting the number of test cases.

    2)First line of each test case has two integers NN, denoting the number of nodes in the graph and MM, denoting the number of edges in the graph.

    hence 4 2 means test case graph has 4 nodes and two edges.