算法–日期函数
问题:给定了年份和第几天,返回月份和日期。如输入2004年第61天,返回3月1日。
在Elements of Programming Style中,作者给出了最简单的算法只需要5行代码外加一个26个整数的一维数组。
This entry was posted on Saturday, August 15th, 2009 at 6:35 pm and is filed under Algorithm . You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.



