Given the following code snippet, find the following:1) Recurrence relation of func (x,y) when x>0 and length of y is n. Express in the form below:T(x,n) = T(?) + O(?)For 2-3, consider worst-case scenario and initial value of y as [1]2) Time complexity of func (x,y)3) Space Complexity and Auxiliary Space Complexity of func (x,y)
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here