Community Profile # Camden Nelson

Last seen: 3 mois il y a Actif depuis 2023

#### Statistiques

• #### Content Feed

Afficher par

Question

What is the output after each recursive function call?
Consider the following code: function [out] = myRecurfn(num) if floor(num) == 0 out = 2 else out = 4 + myRecurfn(nu...

7 mois il y a | 1 réponse | 0

### 1

réponse

Question

Sum of all even index elements of a 1D array
This is the code that I have so far to sum all the even index elements of a 1D array: function [out] = mySumEven(A) n = length...

7 mois il y a | 1 réponse | 0

### 1

réponse

Question

Summing the even index elements of a 1D array
I am trying to write a recursive function that sums the elements in even indexed position of a 1D array, but am not sure how to ...

7 mois il y a | 1 réponse | 0

### 1

réponse

Question

How are the variables being changed in this recursive relationship?
Can someone explain how the value of n is being changed in this fibbonaci recursive relationship. Specifically, which line of co...

9 mois il y a | 1 réponse | 0

### 1

réponse

Question

How to create binary search code
I thought I had this code working yesterday but must've changed something on accident. I am not sure how to finish it to perform...

10 mois il y a | 1 réponse | 0

### 1

réponse

Question

What do these lines of code mean
I am working on a homework assignment where I have to code a linear search algorithm, and looked up a video to see other solutio...

10 mois il y a | 2 réponses | 0

réponses