Statement
This minGap(nums) works: it returns the smallest difference between two numbers in the list (there are at least two). It compares every pair and doesn't finish in time on big lists. Make it fast.
This minGap(nums) works: it returns the smallest difference between two numbers in the list (there are at least two). It compares every pair and doesn't finish in time on big lists. Make it fast.
This minGap(nums) works: it returns the smallest difference between two numbers in the list (there are at least two). It compares every pair and doesn't finish in time on big lists. Make it fast.