You are viewing a single comment's thread. Return to all 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.
Seems like cookies are disabled on this browser, please enable them to open this website
Short Palindrome
You are viewing a single comment's thread. Return to all 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.