1 votes 1 votes What will be the time complexity of the following algorithm ? A(n){ if(n<=1) return 1; for(i=1;i<n;i++){ for(j=0;j<3;j++){ A(n-1) } } } Algorithms time-complexity algorithms asymptotic-notation recursion + – kartikeya2812 asked Jun 16, 2018 kartikeya2812 392 views answer comment Share Follow See 1 comment See all 1 1 comment reply Shubhgupta commented Jun 17, 2018 reply Follow Share T(n) = 3(n-1)T(n-1) after solving we are getting T(n) = $3^{n-1}$(n-1)! complexity = O($3^n$n!) 5 votes 5 votes Please log in or register to add a comment.