Function output of the merge_stacks function where input stacks are s1 and s2, and merged stack is r
merge_stacks function where input stacks are s1 and s2 and merged stack is r
Format:
output of the merge_stacks function where input stacks are s1 and s2, and merged stack is r
Input:
list s1 -
list s2 -
list r -
Output:
list - None
Properties that reference this function:
result of merging stacks a and b = output of the merge_stacks function where input stacks are a and b, and merged stack is [ ] (merge stacks begin)
output of the merge_stacks function where input stacks are [ ] and [ ], and merged stack is result = reverse of result (merge stacks finished)
Conditional properties that reference this function:
if a < b, then output of the merge_stacks function where input stacks are [ a, a_rest ] and [ b, b_rest ], and merged stack is result = output of the merge_stacks function where input stacks are a_rest and [ b, b_rest ], and merged stack is [ a, result ]
(link)if a > b, then output of the merge_stacks function where input stacks are [ a, a_rest ] and [ b, b_rest ], and merged stack is result = output of the merge_stacks function where input stacks are [ a, a_rest ] and b_rest, and merged stack is [ b, result ]
(link)
Comments
Please log in to add comments