分析以下程序片段的时间复杂度是?( )
int cal(int n) { if (n <= 0) return 1; return cal(n - 1) + cal(n - 1); }
复制链接后可在微信、QQ、小红书等平台粘贴分享;答案与解析在题目页。