测评会员优惠活动进行中 · 开通 VIP,有效期内测评不限次 VIP 优惠中 · 测评不限次 立即查看

A66571. 给定如下代码,其时间复杂度为( )。1 int cellRecur(int n) {

单选题

题目描述

给定如下代码,其时间复杂度为( )。

1 int cellRecur(int n) {
2  if (n == 1) 
3   return 1; 
4  return cellRecur(n - 1) + cellRecur(n - 1) + 1; 
5 }

选项(单选)