Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 610 Bytes

File metadata and controls

29 lines (18 loc) · 610 Bytes

Reverse an Array

Code Challenge 01- Reverse an Array

Challenge

Take an array and reverse it in place. Do not use built in methods

Approach & Efficiency

  • Iterate the array
  • Declare the start
  • Declare the end
  • Swap the start and end index
  • Increment start variable
  • Decrement end variable
  • When at the middle, stop

Solution

ArrayReverse