Ask HN: Is Recursion Worth It?
Is recursion really worth it? My CS teacher told me to avoid recursion when possible.<p>Apparently recursion takes up more memory space than nested for loops (I&#x27;m talking about 4-5 for loops) and I lose grades for the same.