You are viewing a single comment's thread. Return to all comments →
you should change from
if 0 in len_set or bin_l[0][0] == '0':
into
if 0 in len_set or bin_l[0][0] == '0' or bin_l[0][0] == '1':
otherwise, your code does not pass the following case
4 1 1 1 1
Seems like cookies are disabled on this browser, please enable them to open this website
Yet Another Minimax Problem
You are viewing a single comment's thread. Return to all comments →
you should change from
if 0 in len_set or bin_l[0][0] == '0':
into
if 0 in len_set or bin_l[0][0] == '0' or bin_l[0][0] == '1':
otherwise, your code does not pass the following case
4 1 1 1 1