indexed elements only the "length" number of times. Not until the list is as small as you need. Also, iterating through a list and modifying it at the same time has unintended consequences.
BTW, have you thought of your problem from a math standpoint? You can probably just use some formula instead of loops.
wot formula 🤔
Обсуждают сегодня