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
Array Data Structure Guide
An array data structure is a fundamental concept in computer science that stores a collection of elements in a contiguous block of memory. It allows for efficient access to elements using indices and is widely used in programming for organizing and manipulating data.
Table of Content
- What is an Array?
- Need of Array Data Structures
- Types of Array Data Structures
- Array Operations
- Application of Array
Contact Us