- Input both arrays, A and B,
- Allocate a new one that's size sizeof(A)+sizeof(B)
- Put numbers in new array - use a loop.
- Delete the repeats.
- Sort it - bubblesort is easy to implement.
Now code.
- Input both arrays, A and B,
- Allocate a new one that's size sizeof(A)+sizeof(B)
- Put numbers in new array - use a loop.
- Delete the repeats.
- Sort it - bubblesort is easy to implement.
Now code.