Thanks a lot Pete. Somehow couldn't wrap my head around the recursive function & base case. I assumed that each time the function called itself it "lost" the previous call result as I thought a variable was needed when it doesn't.
Thanks a lot Pete. Somehow couldn't wrap my head around the recursive function & base case. I assumed that each time the function called itself it "lost" the previous call result as I thought a variable was needed when it doesn't.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks