@JeremyLT You mean recursion here has no use? My base case is value equals none so it gets deleted. Maybe I chose a bad challenge for recursion. Can you guide me to do a challenge where it makes sense?
@JeremyLT Oh I get it. I chose a bad base case because there is no logical relation with the rest of cases. Is that OK? Is it still possible to use recursion here if I choose a good base case?
@JeremyLT Ah you’re right. Recursion is not helping here. I’m sorry I’m so slow sometimes. I’m gonna look for other challenges where recursion can be helpful. Thanks. I think I’ve learned something here.
Looking for a different way to do a problem isn’t slow. That is showing you have creativity and are always looking for different angles on a problem.
Recursion can help in some cases. Non-linear search algorithms (binary search) can be done with recursion. Permutations can also be generated with recursion.