Archive for the ‘ Algorithm ’ Category


算法–日期函数

问题:给定了年份和第几天,返回月份和日期。如输入2004年第61天,返回3月1日。
在Elements of Programming Style中,作者给出了最简单的算法只需要5行代码外加一个26个整数的一维数组。

  • English Version

    • Cannot read Chinese? Please take a look at my English site, hope you can find more you need there!
  • 感谢支持

  • twitter

    facebook

    linkedin

    • You are currently browsing the archives for the Algorithm category.

  • Categories