1
Answer

what is the diffrence between sort and stable_sort i am getting same r

Suri

Suri

3y
447
1

what is the diffrence between sort and stable_sort i am getting same result in both

stable_sort(begin(arr), end(arr), x{                                                                                
            return abs(a - x) < abs(b - x);                                                                                                           
        });                 can someone explain this what that [x] means here

 

Answers (1)