Minimum Absolute Difference in an Array

  • + 0 comments

    Can you explain the part? I understand what it calculating, where did you collect them?

    adjacent_difference(begin(arr), 
                            end(arr),
                            begin(arr),
                            [](int a, int b){
                                return abs(a-b);
                            });