摘要:
Best Time to Buy ans Sell Stock 最近越来越觉得编程就是数学问题,数学的逻辑思维决定了写出的程序的质量。在做这道题的时候越发觉得如此。 题目简介 这个题目分为两个系列,分别是 "I" 和 "II" ,其中I是II的简单版本。 刚做I时感觉很简单,对于O(n^2)和O(n 阅读全文
摘要:
"题目介绍" 1. Problem Description The three hands of the clock are rotating every second and meeting each other many times everyday. Finally, they get bor 阅读全文
摘要:
"题目介绍" 1. Problem Description A number sequence is defined as follows: f(1) = 1, f(2) = 1, f(n) = (A f(n 1) + B f(n 2)) mod 7. Given A, B, and n, you 阅读全文