3 votes 3 votes What is the time complexity of the following recursive function? int ComputFun(int n) { if(n<=2) return 1; else return (ComputFun(floor(sqrt(n)))+n); } $\Theta(n)$ $\Theta(\log n)$ $\Theta(n\log n)$ $\Theta(\log \log n)$ Algorithms nielit-sta-2020 algorithms recursion time-complexity + – gatecse asked Dec 9, 2020 • recategorized Jul 5, 2022 by Lakshman Bhaiya gatecse 905 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
1 votes 1 votes $\text{Option D is correct.}$ GATE2007-45 Hira Thakur answered Dec 11, 2020 • edited Mar 7, 2021 by Hira Thakur Hira Thakur comment Share Follow See all 0 reply Please log in or register to add a comment.