what is the diffrence between sort and stable_sort i am getting same result in both
C++
stable_sort(begin(arr), end(arr), x{
return abs(a - x) < abs(b - x);
}); can someone explain this what that [x] means here
Rajanikant HawaldarRank #110 · 20.2K reputationPosted Jul 4, 2021, 4:53 AM EDT