For those Big O experts out there... I'm trying to deduce the time complexity of a function with two recursive calls, where the input is halved each time:
function myFunc(n) {
if (n > 1) {
let something = 0
for (let i=0; i < n; i++) {
// Do some linear stuff in here
}
myFunc(n/2)
myFunc(n/2)
}
return something;
}
I'm unsure how, exactly, the halving effects the analysis. Any help super appreciated!