zerocool2u / closestpair Goto Github PK
View Code? Open in Web Editor NEWSimple python script for DS HW. Only using repo for temp storage purposes. Generates a sorted list of randomlength consisting of random integers. Then sorts the list foriteration and compares integer values contained within the listto find the 2 integers with thesmallest difference.Output form: ((int1, int2), dif)