Page 1 of 1

1. Write a function that takes two arrays which are already ordered (in ascending order) and creates a new ordered array

Posted: Fri May 20, 2022 11:00 am
by answerhappygod
1 Write A Function That Takes Two Arrays Which Are Already Ordered In Ascending Order And Creates A New Ordered Array 1
1 Write A Function That Takes Two Arrays Which Are Already Ordered In Ascending Order And Creates A New Ordered Array 1 (39.49 KiB) Viewed 43 times
1. Write a function that takes two arrays which are already ordered (in ascending order) and creates a new ordered array by merging these two arrays. Use ONLY queue functions for numeric arrays ("enqueue" or "dequeue") to do this! Note: In your code you are not allowed to use any of the sorting algorithms studied in this class. You will not get any point if you use them for this question!!!!! Example: Input arrays: 1 3 3 4 8 11 y = 2 7 7 15 20 Output array: 1 3 2 3 4 N 8 8 15 20 11 ALSO TEST YOUR FUNCTION WITH THE "Inputs" above the result should be the "Output" above) and take a screenshot of your MATLAB or MATLAB ONLINE screen and include it in