给定如下代码,其时间复杂度为( )。
int cellRecur(int n) { if (n == 1) return 1; return cellRecur(n - 1) + cellRecur(n - 1) + 1; }
复制链接后可在微信、QQ、小红书等平台粘贴分享;答案与解析在题目页。