BlogHide Resteemsrameshares (25)in algorithms • 3 years agoSort squares of given sorted array of integersGiven a sorted array of integer array containing both positive and negative numbers. We aim to sort the squares of those numbers in place. Examples input1 = {-8, -3, -2, 4, 5, 7} output = {4…