Hi there! I just had a quick question regarding the time complexity of this recursive function I implemented.
My function very simply adds up "point values" of all consecutive numbers up to n, with odd numbers being worth 1 "point" and even numbers being worth 2.
Ex: If n is 4, totalSum would be 1+2+1+2 = 6.
I was confused as to if my recursive code below would run at a time complexity of O(n) or O(log(n)). Thank you!