The answer was, find a mathematical expression depending on the number of inputs.
很不错,答案是,找到一个通过输入数字,计算出来的数字表达式。
The other obvious one to do would be worst case. Again, over all possible inputs to this function, what's the most number of steps it takes to do the computation?
很明显另一种就是针对最坏的情况了,也就是在所有可能的输入,里面选出用的,步骤最多的那个输入?
应用推荐