Segmention fault for 2 test cases
Hey @akshitmehta while taking input linked list you are decrementing the n and m and then before calling adjust head you are comparing them, So, take input using a for loop.
Hey @akshitmehta while taking input linked list you are decrementing the n and m and then before calling adjust head you are comparing them, So, take input using a for loop.