Can there be duplicates in the input?


  • 0
    M

    Can we have duplicates either in the same linked list or across the linked lists?


  • 0
    T

    Yes, it shouldn't make a difference anyway. Think about it, does having duplicates make a difference in the merge step of merge sort? Now build up on that ;)


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.