Array Data Structure

  • Last Updated : 20 Jan, 2023

Learn more about Array in DSA Self Paced Course
Practice Problems on Arrays
Recent articles on Arrays

What is Array?

An array is a collection of items stored at contiguous memory locations. The idea is to store multiple items of the same type together. This makes it easier to calculate the position of each element by simply adding an offset to a base value, i.e., the memory location of the first element of the array (generally denoted by the name of the array).

Array Data Structure

Array Data Structure

The above image can be looked as a top-level view of a staircase where you are at the base of the staircase. Each element can be uniquely identified by their index in the array (in a similar way as you could identify your friends by the step on which they were on in the above example).

Topics :

Array Introduction:

  1. What is Array
  2. Introduction to Arrays – Data Structure and Algorithm Tutorials
  3. Applications, Advantages and Disadvantages of Array

Introduction of Array in Different language:

  1. Arrays in C/C++
  2. Arrays in Java
  3. Arrays in Python
  4. Arrays in C#
  5. Arrays in Javascript

Basic Operations:

  1. Searching in Array
  2. Write a program to reverse an array
  3. Left Rotate an Array
  4. Right rotate an Array
  5. Search, insert and delete in an unsorted array
  6. Search, insert and delete in a sorted array
  7. Sort an Array
  8. Generate all subarrays

DSA-Self-Paced
Standard problem on Array:

Quick Links :

GeeksforGeeks Courses:

Complete Interview Preparation

Get fulfilled all your interview preparation needs at a single place with the Complete Interview Preparation Course that provides you with all the required stuff to prepare for any product-based, service-based, or start-up company at the most affordable prices.

Live Courses

GFG Live Classes offers Interactive LIVE and Self-Paced Courses with Individual Attention from Industry Leading Experts to Encourage Out-of-the-Box Thinking, Leading to Clarity in Concepts, Creativity, and Innovative Ideas. Clear your doubts with the instructor, just like an offline classroom program. Check out GeeksforGeeks valuable Live Courses. – System Design Live, Competitive Programming Live, and more!

Language Foundation Courses[C Programming / C++ / JAVA / Python ]

Master any programming language from scratch and understand all its core fundamental concepts for a solid programming foundation at a pocket-friendly price with help of GeeksforGeeks Language Foundation Courses– C Programming | Java Foundation | Python Foundation | C++ Foundation. These courses are designed for complete beginners who want to get started with programming and build their foundations.

Recomended:

If you like GeeksforGeeks and would like to contribute, you can also write an article and mail your article to review-team@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above


My Personal Notes arrow_drop_up