



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Output: 1 2 3 4 5 6 7 8 9 10 Case 3: Input: 6 5 1 2 5 7 8 10 3 11 13 15 16 Output: 1 2 3 5 7 8 10 11 13 15 16 Case 4: Input: 3 2 11 12 13 9 10 Output: 9 10 11 12 13
Case 3:
Input: 8 5 1 0 4 0 5 0 0 0 2 6 7 8 9 Output: 1 2 4 5 6 7 8 9 Case 4: Input: 11 6 6 0 0 8 10 15 0 18 0 0 0 2 3 4 7 8 9 2 3 4 6 7 8 8 9 10 15 18 Case 5: Input: 11 6 0 11 0 12 0 13 0 14 0 15 0 11 12 13 14 15 16
Output: Merging the second array elements in their correct position in first array. X[ ] = { 1, 2, 3, 5, 6, 8, 9, 10, 15 } The above can be represented
Output: -5 -4 9
Case 4: Input: 8 -2 -3 -4 -5 1 2 3 4 Output: -5 -4 4
Case 5: Input: 7 -1 -2 -3 -4 -5 -6 - Output: -1 -2 -
Input: First line integer represents number of array elements and Next line contains n integers Output: print the non-zeros in the relative order flowed by all zeros present in the array Example:- Input: 7 4 0 2 0 3 0 9 Output: