Array Data Structure

Last Updated : 16 Feb, 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

Standard problem on Array:

Quick Links :

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

Share your thoughts in the comments

Similar Reads

Complete Guide to Linked List Data Structure
In this complete guide to Linked List Data Structures, you will learn about the basics of Linked List, how to get started with Linked List, learning, strategy, resources, problems, and much more.
4 min read
Complete Guide to Arrays Data Structure
In this complete guide to Array Data Structures, you will learn about the basics of Arrays, how to get started with Array, learning, strategy, resources, problems, and much more.
4 min read
Complete Guide to String Data Structure
In this complete guide to String Data Structures, you will learn about the basics of string, how to get started with String, learning, strategy, resources, problems, and much more.
4 min read
Data Processing Agreement
Welcome to GeeksforGeeks. This Agreement is between Sanchhaya Education Pvt. Ltd., registered and headquartered at A-143, Sovereign Corporate Towers, 9th Floor, Sector-136, NOIDA, Gautam Buddha Nagar, Uttar Pradesh,201305, hereinafter referred to as ‘Company’ or GeeksforGeeks (“us”, “we”, or “our”) operates https://www.geeksforgeeks.org/ (hereinaft
11 min read
Pandas for Data Visualization: A Complete Guide
Learn Pandas for data visualization, with basic to advanced techniques of plotting and customizing interactive data visualizations.Build interactive charts, graphs, and plots to summarize data and make intuitive reports. This tutorial will help you master data visualization techniques using Pandas and enable you to share your insights graphically.
4 min read
Static Data Structure vs Dynamic Data Structure
Data structure is a way of storing and organizing data efficiently such that the required operations on them can be performed be efficient with respect to time as well as memory. Simply, Data Structure are used to reduce complexity (mostly the time complexity) of the code. Data structures can be two types : 1. Static Data Structure 2. Dynamic Data
4 min read
Is array a Data Type or Data Structure?
What is Data Type? In computer programming, a data type is a classification of data that determines the type of values that can be stored, manipulated, and processed. It tells the computer what kind of data a particular variable or constant can hold, and what operations can be performed on that data. Common data types include integers, floating-poi
8 min read
Data Structure Alignment : How data is arranged and accessed in Computer Memory?
Data structure alignment is the way data is arranged and accessed in computer memory. Data alignment and Data structure padding are two different issues but are related to each other and together known as Data Structure alignment. Data alignment: Data alignment means putting the data in memory at an address equal to some multiple of the word size.
4 min read
Difference between data type and data structure
Data Type A data type is the most basic and the most common classification of data. It is this through which the compiler gets to know the form or the type of information that will be used throughout the code. So basically data type is a type of information transmitted between the programmer and the compiler where the programmer informs the compile
4 min read
Difference between Functional Structure and Divisional Structure
Organisation Structure is an element of job position that provides the basis on which managers and non-managerial employees perform their assigned jobs. Functional Structure and Divisional Structure are types of Organisation Structure. What is Functional Structure? The structure under which jobs of similar nature are grouped under one department is
2 min read