Arrays a kind of data structure that can store a fixed-size sequential collection of elements of the same type. An array is used to store a collection of data, but it is often more useful to think of an array as a collection of variables of the same type. It is used to represent multiple data items of the same type by using only a single name. Arrays are more efficient and beneficial when compared to linked lists and hash tables. Faster and can be utilized anywhere. Store data of similar data types together and can be used anywhere in the code.
Question | Link |
---|---|
Reverse the array | Solve |
Find the maximum and minimum element in an array | Solve |
Find the "Kth" max and min element of an array | Solve |
Given an array which consists of only 0, 1 and 2. Sort the array without using any sorting algo | Solve |
Move all the negative elements to one side of the array | Solve |
Kadane's Algorithm | Solve |
Merge Intervals | Solve |
Next Permutation | Solve |
Count Inversion | Solve |
Best time to buy and sell stock | Solve |
Three way partitioning of an array around a given value | Solve |
Minimum swaps required bring elements less equal K together | Solve |
Minimum no. of operations required to make an array palindrome | Solve |
Median of 2 sorted arrays of equal size | Solve |
Median of 2 sorted arrays of different size | Solve |