Unfortunately, I am not 100% sure (yet) how the degeneracy test is supposed to work but it cannot work in it's current form. The heapq.nsmallest function returns two tuples that always have two different first elements. Hope I am not missing something. :)
Unfortunately, I am not 100% sure (yet) how the degeneracy test is supposed to work but it cannot work in it's current form. The
heapq.nsmallestfunction returns two tuples that always have two different first elements. Hope I am not missing something. :)