Function result of sorting x with sorted stack y

helper for sort that stores the values sorted so far in y

Format:

result of sorting x with sorted stack y

Input:

list x -
list y -

Output:

list - None

Properties that reference this function:

result of sorting [ ] with sorted stack sl = sl (Sort List)
result of sorting [ el, rem ] with sorted stack sl = result of sorting (remaining elements after [ el, rem ] is popped at index (index of the maximum value in stack [ el, rem ])) with sorted stack [ maximum value in stack [ el, rem ], sl ] (Sort List (2))
result of sorting els = result of sorting els with sorted stack [ ] (Sort)


Comments

Please log in to add comments