
经典计算机问题
0_o_c
这个作者很懒,什么都没留下…
展开
-
sort-colors
1、来源:sort-colorsGiven an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, white and blue.Here, we will use t原创 2017-10-24 01:10:18 · 348 阅读 · 0 评论 -
Fibonacci数列
转载自:Fibonacci数列 题目:定义Fibonacci数列如下: / 0 n=0f(n)= 1 n=1 \ f(n-1)+f(n-2) n=2输入n,用最快的方法求该数列的第n项。分析:在很多C语言教科书中讲到递归函数的时候,都会用Fibonac转载 2017-10-16 22:32:15 · 370 阅读 · 0 评论