TE
科技回声
首页
24小时热榜
最新
最佳
问答
展示
工作
中文
GitHub
Twitter
首页
Leaping Years and Drawing Lines
10 点
作者
muriithi
大约 17 年前
2 条评论
xirium
大约 17 年前
I certainly hadn't associated Bresenham's algorithm with leap year algorithms but it is a good explanation.
bayareaguy
大约 17 年前
For the gcd, I've always liked this version from python's own unit test:<p><pre><code> def gcd(a, b): while a: a, b = b%a, a return b</code></pre>