# recursion

1. ### JavaScript Recursively Delete objects from an array of nested objects

Anyone know how to recursively find and delete an object from an array structured like this with infinite nested objects with the same structure? [ { id: 1, nest: [ { id: 2, nest: [{id: 3, nest: [{..continues..}]}], }, { id: 4, nest...
2. ### Python Doubt about recursion

Hello, I have a doubt about how the following recursion works: ’ ’ ’ ’ ’ ’ ’ ’ ’ ’ ’ ’ ’ ’ ’ ’ ’ ’ ’ ’ ’ ’ ’ ’ ’ ’ ’ def fact(n): if n==1: return 1 else: return n*fact(n-1) print(fact(4)) ’ ’ ’ ’ ’ ’ ’ ’ ’ ’ ’ ’ ’ ’ ’ ’ ’ ’ ’ ’ ’ ’ ’ ’ ’ ’ ’ ’ The output is 24, which...
3. ### JavaScript Creating a new array from recursive mapping

I am attempting to do something very complex. I have a database that has a self relation (categories that contain a nested category). The ORM I’m using makes use of these categories as objects: category = [ { name: "Lights", description: "some description", parentid: "some id"...
4. ### C++ How to recursively copy files and folders with files inside ?

Hi guys. I want recursively copy files and folders with files inside. If folder do not exist, just create it. I just made this code: CStringArray strArray1; fnGetAllFilesNames(strArray1); CString slashs("\\")...
5. ### C++ Non tail recursive function help

if i have a function f(n)=3+8+14+24+⋯+(n2−1) how do i implement this into a function recursively without using tail recursion? it needs a static variable used also thanks!