You are viewing a single comment's thread. Return to all 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); });
Seems like cookies are disabled on this browser, please enable them to open this website
Minimum Absolute Difference in an Array
You are viewing a single comment's thread. Return to all comments →
Can you explain the part? I understand what it calculating, where did you collect them?