My issue
help me in the 925 data structures.
My code
# First array
arr1 = [2, 4, 6]
size1 = 3
# Second array
arr2 = [8, 10, 12, 14]
size2 = 4
#Write the code to solve the following problem
merged[arr1 + arr2];
mergedSize = size1 + size2;
for i in range(i=0 ; i<size1 ; i++)
{
merged[i]=arr1[i];
}
for i in range(i=0 ; i<Size2 ; ++i)
{
merged[size1+i]= arr2[i];
}
# Print the merged array
for i in range(mergedSize):
print(merged[i], end=" ")
Learning course: Data Structures & Algorithms using C
Problem Link: https://www.codechef.com/learn/course/ciet-data-structures-c/CIETDSC01/problems/DSAAGP09