# Arrays

An array is the most primitive and frequently used data structure in the field of computer science. It has become the inspiration for several data structures such as lists and strings.
An array is basically a collection of similar types of data items stored at contiguous memory locations. It helps us to store multiple items of the same data type together. They are also used to implement other data structures like Heaps, Stacks, Queues, etc.
This category contains all of the information you need to know about arrays.

## Top Problems related to Arrays

Sort 0 1

Binary Search

Linear Search

Print Spiral

Count Inversions

Pairs with difference K

Multiples of 2 and 3

Swap Alternate

Find Unique

Find Duplicate

Intersection of Two Arrays II

XOR Pairs

Print Diagonal

Replace 0s

Rotate Matrix K times

Idempotent Matrix

Maximum Subarray Sum

Move Zeroes To End

Insert Interval

Product Of Array Except Self

Best Time to Buy and Sell Stock II