Data Structure is a particular way of organizing data in a computer so that it can be used efficiently. Ex:- Array, Linked List, Stack, Queue, Tree, Graph
Array is a linear data structure which is collection of data of same datatype in a contiguous memory locations.
Searching is an algorithm to find the element in a given set of data.
It is of two types -
- Linear search - O(n)
- Binary search - O(logn)