I have faced this question in a interview and could not solve.? can anyone help with this.
Find the absolute sum b/w consecutive elements in array and add it. Replace all occurrences of given number in the array and repeat the procedure.
Asked by: Anonymous on Aug. 21, 2021, 10:38 p.m. Last updated on Aug. 21, 2021, 10:38 p.m.