+ 2

# How do you answer challenges with recursion within the time limit?

I often run out of time when the challenge is about recursion. Do you have any shortcuts or techniques to help figure out the answer quicker?

5 Answers

+ 7

I try to understand the reasoning behind the algorithm and start backwards - from the last, basic step (usually n=0 or n=1) and apply it step-by-step.

+ 9

Take screenshot and then figure it out!

+ 6

1) Some of those questions involve multiplication with zero. So, the answer will be zero.
2) Some of those questions have explanatory function names like power, factorial etc,. So, the answer can be found.
3) If the question doesn't belong to above 2 categories, try to increase your calculation speed and go for @Dayve's solution.

+ 5

The most effective way hahahaha

0

@Dayve: you can see the answers after the challenged is finished by clicking in the text bellow the table that shows the breakdown of the rounds in the summary