andioop to Programming HorrorEnglish · edit-21 year agoGod I wish there was an easier way to do thisimagemessage-square55fedilinkarrow-up1216arrow-down121
arrow-up1195arrow-down1imageGod I wish there was an easier way to do thisandioop to Programming HorrorEnglish · edit-21 year agomessage-square55fedilink
minus-squaresloppy_diffuser@sh.itjust.workslinkfedilinkEnglisharrow-up4·1 year agofor i in itertools.count(): ... will count to infinity. Better make it into a dictionary so it’s O(1) complexity instead of O(n) while you’re at it.
for i in itertools.count(): ...
will count to infinity.Better make it into a dictionary so it’s O(1) complexity instead of O(n) while you’re at it.