Question: Sorted lists def combine(self, source1, source2): ------------------------------------------------------- Combines two source lists into the current target list. When finished, the contents of source1 and source2
Sorted lists
def combine(self, source1, source2): """ ------------------------------------------------------- Combines two source lists into the current target list. When finished, the contents of source1 and source2 are interlaced into target and source1 and source2 are empty. Values are sorted. (iterative algorithm) Use: target.combine(source1, source2) ------------------------------------------------------- Parameters: source1 - an array-based list (Sorted_List) source2 - an array-based list (Sorted_List) Returns: None ------------------------------------------------------- """
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
