Functions or Methods are a set of instructions bundled together to achieve a specific outcome. Functions are a good alternative to having repeating blocks of code in a program. Functions also increase the reusability of code. Values can be passed to a function using variables – we call these parameters or arguments. Functions can also return values
Square Root
Write a method to find square root of a number (using linear search)
Searching in Arrays
Linear Search
Searching algorithm to find the index of element in a given array.
Binary Search
Efficient searching algorithm to find the index of element in a given sorted array.