Getting TLE what is the problem??
Merge Sorted Linked Lists
since they are already sorted, u do not need to mergesort
only use the merge function
mergesort will take nlogn and only merge function will take n, that will solve ur problem
Getting TLE what is the problem??
since they are already sorted, u do not need to mergesort
only use the merge function
mergesort will take nlogn and only merge function will take n, that will solve ur problem