0 votes 0 votes What is the difference between concatenation of two linked lists and union of two linked lists? Gaurangi Katiyar asked Dec 6, 2018 Gaurangi Katiyar 274 views answer comment Share Follow See 1 comment See all 1 1 comment reply Mk Utkarsh commented Dec 6, 2018 i edited by Mk Utkarsh Dec 6, 2018 reply Follow Share In union of two linked list we need to make sure there are no duplicates after the union of two linked lists because sets doesn't have duplicate elements. If one list is of size $n$ and other of size $m$ then time complexity of union of these two list is $O(mn)$ In concat duplicates doesn't matter so we just need to join the 2 list which takes $O min(m,n)$ time 1 votes 1 votes Please log in or register to add a comment.