Btw, this is a sick Python trick to scan a range with a window of size N. Create an iterate object, ...
Shared by Тsфdiиg @tsoding on X

Btw, this is a sick Python trick to scan a range with a window of size N. Create an iterate object, duplicate it N times, spread it over zip and it will do the rest. Found it on Stack Overflow somewhere... https://t.co/JRcdZGqD4Q
Btw, this is a sick Python trick to scan a range with a window of size N. Create an iterate object, duplicate it N times, spread it over zip and it will do the rest. Found it on Stack Overflow somewhere... https://t.co/JRcdZGqD4Q
byteCoder