49
Awesome Team
Philippe Cholet
https://github.com/Philippe-Cholet
Last seen 3 minutes ago
Member for 6 years, 2 months, 27 days
Difficulty Advanced
I was a math teacher in France for two years. I'm currently reconverting to IT, I'm here to improve my Python skills, and practice English.
Didn't know bytearray. To do the same thing I would change it into list of lists. But I like your way too.
I think you don't need to heapify a queue when there is only one element in it. Like the use of heapq.
More
it.product is good for CHANGE here.
numpy is great too. I used sympy for the same task.
I don't really use deque even if it's better for queues than lists with `.pop(0)`. Because for time execution on checkio, lists are usually enough. But you're right to use it.
I wrote `int(i) == i` too but `i.
More