I wanted to know which one is better in performance between a for loop and a while loop in terms of:
1. memory requirement
2. execution speed
Also wanted to know since recursion functions are not as efficient as for of while in terms of memory requirement and execution speed, what is the purpose of using them in the code?
1. memory requirement
2. execution speed
Also wanted to know since recursion functions are not as efficient as for of while in terms of memory requirement and execution speed, what is the purpose of using them in the code?
Comment