Problem statement:
Given an array of integer, you need to write an algorithm so that it prints the expected behaviour?
Sample Input:
a[] = {1, 0, 2, 0, 3, 0}
Sample Ouput:
a[] = {1, 2, 3, 0, 0, 0}
Given an array of integer, you need to write an algorithm so that it prints the expected behaviour?
Sample Input:
a[] = {1, 0, 2, 0, 3, 0}
Sample Ouput:
a[] = {1, 2, 3, 0, 0, 0}
No comments:
Post a Comment