[Tutor] custom comparator with ordered list
Mats Wichmann
mats at wichmann.us
Mon Jun 26 13:22:21 EDT 2017
On 06/26/2017 10:38 AM, Anish Kumar wrote:
>
>> anish singh wrote:
>>
>>> I need a custom comparator.
>>>
>>> dictionary = {a:[b,c], d:[e,f]}
>>>
>>> If both 'b' and 'e' belong to the same bin
if would help alot if your problem statement included a description of
what "same bin" is.
> Well no, take the case of [1,100] and [2,0]
> Both belong to same bin
how would we conclude that these "belong to same bin"?
More information about the Tutor
mailing list