Array in Data Structures

  1. Elements have a specific value and data type.
  2. Each element also has its own index, which is used to access the element.
  • Arrays are better at processing many values easily and quickly.
  • Sorting and searching the values is easier in arrays.
  • Arrays have better cache locality that can make a pretty big difference in performance.
  • Arrays represent multiple data items of the same type using a single name.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store