<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite"><div class="gmail_quote"><div style="margin-left: 40px;"><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> x = starts.pop(0)</span><br style="font-family: courier new,monospace;"></div></div></blockquote></div><br><div>Se non sbaglio pop(0) è lineare, quindi rende l'algoritmo quadratico. Non sarebbe meglio usare collections.deque e pop_left?</div><div><br></div><div>Ciao,</div><div>Giuseppe</div></body></html>