How to generate post order array from given in order array [8,6,9,4,7,2,5], looking for the sample C code?
You have given height array of array. Generate the original array.
Input: [6,3,0,2,2,0,0] Output : [ 1,5,7,3,2,6,4]
A[i] value in input array is the number of greater element on right side.
Say you are given two arrays where second array is duplicate with one missing element. What should be the best possible way to find that missing element - array1: [1,2,3,4,5,6,7] array2: [1,3,4,5,6,7]
Missing Element: 2