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

How to run standalone mock server on local laptop

 Please download the standalone wiremock server from Direct download section at the bottom of the page.  Download and installation Feel fre...