My issue
where we can give output and answer
My code
# Initial array
arr = [2, 4, 6, 8, 10]
size = 5 # Current size of the array
position_to_delete = 2 # Index of the element to delete
# Shift elements to fill the gap left by the deleted element
# Update the size of the array
# Print the updated array
for i in range(size):
print(arr[i], end=" ")
Learning course: BCS301: Data structures
Problem Link: https://www.codechef.com/learn/course/abesit-dsa/ABESITDS05/problems/DSAAGP08