It isn't performing the same logic, it is just giving you the same result, it is an alternative method to iteration and not always faster. however it is not just based on implementation, it is also based on how the algorithm works. you technically cant have the same algorithm be both recursive or iterative. this is a misconception |
It isn't performing the same logic, it is just giving you the same result, it is an alternative method to iteration and not always faster. however it is not just based on implementation, it is also based on how the algorithm works. you technically can't have the same algorithm be both recursive or iterative. this is a misconception |
--annonymous |
--annonymous |