+ 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?

4th Apr 2017, 7:23 AM
Ruth G
Ruth G - avatar
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.
4th Apr 2017, 8:54 AM
Kuba SiekierzyƄski
Kuba SiekierzyƄski - avatar
+ 9
Take screenshot and then figure it out!
4th Apr 2017, 7:32 AM
Dev
Dev - avatar
+ 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.
4th Apr 2017, 12:22 PM
Krishna Teja Yeluripati
Krishna Teja Yeluripati - avatar
+ 5
The most effective way hahahaha
4th Apr 2017, 7:42 AM
Heng Jun Xi
Heng Jun Xi - avatar
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
10th Apr 2017, 7:27 AM
Ruth G
Ruth G - avatar