Given two arrays A and B. A has integers unsorted. B has the same - TopicsExpress



          

Given two arrays A and B. A has integers unsorted. B has the same length as A and its values are in the set {-1,0,1} you have to return an array C with the following processing on A. if B has 0 then C must have A if B has -1 then A must be in C within the sub-array C[0] - C[i-1] ie. left subarray if B has 1 then A must be in C within the sub array C[i+1] - C [length(A)] ie right subarray. If no such solution exists then printf("no solution");
Posted on: Tue, 17 Sep 2013 17:43:09 +0000

© 2015