if语句计算时间
if s1 else s2
算出的时间是S1和S2当中的最大值
for语句计算时间
写错了...i++是n
recursion计算时间
•At the current stage, we will ignore details and focus on the growth rate of the cost. •Under our level of granularity,
the following two cost functions • 𝑇1 𝑛 = 6𝑛 + 4 • 𝑇2(𝑛) = 𝑛
are of the same growth rate