Home /
Expert Answers /
Computer Science /
consider-the-following-two-equivalent-programs-written-in-python-and-c-respectively-def-f-a-b-pa541
(Solved):
Consider the following two equivalent programs written in Python and C++ respectively. def f(A,B) ...
Consider the following two equivalent programs written in Python and C++ respectively. def f(A,B) : B+=1 if A<=0: return B else: return f(A?1,B) double f( int A, int B){B+=1; if (A<= ?){ return B; \} else \{ return f(A?1,B); \} What is the time complexity of the function f()? Select one: A. O(2?A) B. O(A?2) C. O(Alog??2A) D. None of the others E. O(A)