Array Data Structure Read Courses Practice Improve Improve Improve Like Article Like Save Article Save Report issue Report Complete Guide to ArraysLearn more about Array in DSA Self Paced CoursePractice Problems on ArraysTop 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). Table of Content What is Array? Array Introduction Introduction of Array in Different language Basic Operations Standard Easy Problems on Array Standard Medium Problems on Array Standard Hard Problems on Arrays Array Introduction: 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# Arrays in Javascript Basic Operations: 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 Easy Problems on Array: Find the largest three elements in an array Find Second largest element in an array Move all zeroes to end of array Rearrange array such that even positioned are greater than odd Rearrange an array in maximum minimum form using Two Pointer Technique Segregate even and odd numbers Reversal algorithm for array rotation Print left rotation of array in O(n) time and O(1) space Sort an array in wave form Sort an array which contain 1 to n values Count the number of possible triangles Print All Distinct Elements of a given integer array Find the element that appears once in Array where every other element appears twice Leaders in an array Find sub-array with given sum Standard Medium Problems on Array: Rearrange an array such that arr[i] = i Rearrange positive and negative numbers in O(n) time and O(1) extra space Reorder an array according to given indexes Search an element in a sorted and rotated array Find the Rotation Count in Rotated Sorted array K-th Largest Sum Contiguous Subarray Find the smallest missing number Difference Array | Range update query in O(1) Maximum profit by buying and selling a share at most twice Smallest subarray with sum greater than a given value Inversion count in Array using Merge Sort Sort an array of 0s, 1s and 2s Merge two sorted arrays with O(1) extra space Majority Element Two Pointers Technique Find a peak element Find a triplet that sum to a given value Minimum increment by k operations to make all elements equal Equilibrium index of an array Standard Hard Problems on Arrays: Find k numbers with most occurrences in the given array MO’s Algorithm Square Root (Sqrt) Decomposition Algorithm Sparse Table Range sum query using Sparse Table Range Minimum Query (Square Root Decomposition and Sparse Table) Range LCM Queries Merge Sort Tree for Range Order Statistics Minimum number of jumps to reach end Space optimization using bit manipulations Sort a nearly sorted (or K sorted) array Find maximum value of Sum( i*arr[i]) with only rotations on given array allowed Median in a stream of integers (running integers) Construct an array from its pair-sum array Maximum equlibrium sum in an array Smallest Difference Triplet from Three arrays Find all triplets with zero sum Quick Links: ‘Practice Problems’ on Arrays ‘Quizzes’ on Arrays ‘Video Tutorials’ on Arrays Recomended Articles: Learn Data Structure and Algorithms | DSA Tutorial Introduction to Arrays – Data Structure and Algorithm Tutorials Introduction to Matrix or Grid – Data Structure and Algorithms Tutorial Feeling lost in the world of random DSA topics, wasting time without progress? It's time for a change! Join our DSA course, where we'll guide you on an exciting journey to master DSA efficiently and on schedule. Ready to dive in? Explore our Free Demo Content and join our DSA course, trusted by over 100,000 geeks! DSA in C++ DSA in Java DSA in Python DSA in JavaScript Commit to GfG's Three-90 Challenge! Purchase a course, complete 90% in 90 days, and save 90% cost click here to explore. Last Updated : 15 Jan, 2024 Like Article Save Article Next What is Array? Share your thoughts in the comments Add Your Comment Please Login to comment...