what will be the run time of the following code segment in terms of big O? [assuming f1(n)=O(n)
]
function Recurse(A[1..n])
f1(n)
t1 <-- Recurse(A[1..(n-1)])
t2 <-- Recurse(A[(2..n])
return (t1+t2)
end function
is it O(n)
?? or something else?