This is a daily code challenges project that includes various challenges Through DeltaV Code School.
Clone this repository to your local machine.
$ git clone [https://github.com/mrsantons/401-DSA.git]
To run the program from Visual Studio: Select File -> Open -> Project/Solution
Next navigate to the location you cloned the Repository.
Double click on the challenges or DSA directory.
Then select and open the program you want to view.
Open the program using Visual Studio and click "Start" button to run this program.
For this challenge we are tasked with taking an array and reversing that input without altering the original array or using the built in method of Array.Reverse().
Write a function called reverseArray which takes an array as an argument. Without utilizing any of the built-in methods available to your language, return an array with elements in reversed order.
Once you’ve achieved a working solution, implement the same feature with a different methodology. (Hint: what different techniques do you have when working with arrays? Recursion, loops, indexes, modifying the array input directly…)
Matt and I approached reversinge this array as taking a test array and inputing the last number (or input) of that array into the first available index of a new "reverse" array. This approach would be of linear time complexity which is O(n). This is because the time this function takes to run would increase proportionally to the amount of data the function contains.
Write a function to add up the sum of each row in a matrix of arbitrary size, and return an array with the appropriate values.