Inactive Tutor answered 08/08/20
merging 8 and 3: 3 8
merging 9 and 1: 1 9
merging these: 1 3 8 9 <-- buffered
merging 5 and 8: 5 8
mergin 7 and 4: 4 7
merging these: 4 5 7 8 <--- buffered
merging the buffered:
1 3 4 5 7 8 8 9
Sarah P.
asked 08/08/208 3 9 1 5 8 7 4
----->
recurse down
A.
------>
B. -----------> F. return back up
-------> --------> E.
C. ------> D.
------->
base case(terminal)
Inactive Tutor answered 08/08/20
merging 8 and 3: 3 8
merging 9 and 1: 1 9
merging these: 1 3 8 9 <-- buffered
merging 5 and 8: 5 8
mergin 7 and 4: 4 7
merging these: 4 5 7 8 <--- buffered
merging the buffered:
1 3 4 5 7 8 8 9
Get a free answer to a quick problem.
Most questions answered within 4 hours.
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.