Complete Guide to Arrays
Learn more about Array in DSA Self Paced Course
Practice Problems on Arrays
Top Quizzes 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
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).
- What is Array
- Introduction to Arrays – Data Structure and Algorithm Tutorials
- Applications, Advantages and Disadvantages of Array
Introduction of Array in Different language:
- Arrays in C/C++
- Arrays in Java
- Arrays in Python
- Arrays in C#
- Searching in Array
- Write a program to reverse an array
- Complete Guide On Array Rotations – Data Structure and Algorithms Tutorial
- Search, insert and delete in an unsorted array
- Search, insert and delete in a sorted array
- Sort an Array
- Generate all subarrays
Standard problem on Array:
Quick Links :
If you like GeeksforGeeks and would like to contribute, you can also write an article and mail your article to email@example.com. 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