DEV Community

Edward Mendoza
Edward Mendoza

Posted on

Data Structures [Arrays]

Hello there friends, this past week officially started with my job search, which means that I need to start trying to improve what I feel is my weakness so for me was an easy answer data structure 😅. So let's start.

What is an array

An array is a linear data structure consisting of a collection of elements which are stored in contiguous physical memory locations and identified by an index, we have two different ways to work with arrays, onde dimensional and two-dimensional array.

How we can iterate over one-dimensional array

function arrayTraversal(array){
  for(let i = 0; i < array.length; i++){

Top comments (0)