Wednesday, June 26, 2019

Can you write the algorithm for the following statement?

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}

No comments:

Post a Comment

Blueprint for self-improvement

To learn faster: Make the process fun To understand yourself : Write To understand the world better : Read To build deeper connection : Lis...