Homework 5 Ex4
You cannot submit for this problem because the homework's deadline is due.
Problem 4
- Submit
merge.c
here. SubArr2
should besubArr2
. Actually the name of the parameters do not matter. You can use whatever name you like, and you can still pass JOJ.- In
void merge(int subArr1[], int subArr2[], int arrSorted[], int subArr1_len, int subArr2_len)
,arrSorted
is actually used as an output argument here. When we call this function,subArr1
andsubArr2
are two ascending sorted arrays,subArr1_len
andsubArr2_len
are their length respectively, andarrSorted
is an array whose length is greater thansubArr1_len + subArr2_len
and you should put the result of merging intoarrSorted
.
Homework 5
- Status
- Finished
- Problems
- 6
- Open Since
- 2022-06-25 16:45
- DDL
- 2022-07-02 23:59
- Extension
- 48.0 hour(s)