Solution to Fibonacci from Jobdu

1 Aug

Question (in Chinese): Question Name: Fibonacci Question Description: find the Fibonacci number F(N). Input: may contains multiple test cases. Each case is a single line, including one integer as the N. Output: the Fibonacci number F(N).

The solution … Read More »

Solution to Expand Spaces from Jobdu

30 Jul

Question (in Chinese): Question Name: Expand Spaces Question Description: giving a string, expand all spaces into “%20”. Input: a single line as the original string. Output: the expanded string. Example:

It is completely the same as the problem … Read More »