Minimum Absolute Difference in an Array

  • + 0 comments

    Your approach is likely taking too long, since you're running O(n^2)

    If you're using just the C stdlib, try using qsort on the data set and then comparing just the neighbors for each element.