Updated reduced create method when 2 lists are present
This commit is contained in:
parent
c853d5250c
commit
5c91fce224
@ -25,11 +25,7 @@ namespace C_.Datastructures
|
||||
LinkedList<T> list;
|
||||
|
||||
list = list1;
|
||||
if (list == null || list.Count == 0)
|
||||
{
|
||||
//If list 2 is the only list present
|
||||
return list2;
|
||||
}
|
||||
if (list == null || list.Count == 0) return list2;
|
||||
|
||||
//Find end of list and append fist item of next list
|
||||
if (list2 == null || list.Count == 0) return list;
|
||||
|
Loading…
Reference in New Issue
Block a user