View on GitHub

401-data-structures-and-algorithms

Reverse an Array

reverse an array without using any built-in methods from javascript.

Whiteboard Process

array-reverse image link

Approach & Efficiency

trying to do this without any built-in methods was tough, until I found out you can do arrayOne[0] = arrayTwo[0] and it’ll work no problem. finding a solution took a bit of time with googling and brainstorming.

JavaScrip file link to github ➜

Go to table of contents