( Botond | 2021. 06. 17., cs – 10:03 )

Egy komment:

"I think key takeaway here is: prefer short and simple loops over math. As you already said, the math is very hard to get exactly right (so, error prone and hard to read). But I believe it is also at least an order of magnitude slower than the loop-based solution."

Pontosan ez volt a véleményem, mielőtt elkezdtem elolvasni a hozzászólásokat.