1. Separate negative and positive numbeqrs. 2. Square all elements. 3. Reverse the squared negative list. 4. Merge both sorted lists using two pointers.
/*Given an array of integers, find all the leaders in the array. An element is called a leader if it is greater than all elements to its right. The last element is always a leader.
Some results have been hidden because they may be inaccessible to you
Show inaccessible results