Recently in an online test I faced this question i.e. on how to minimize the number of candies/toffee to be distributed by a teacher and found that a lot

Shell Sort is a generalized version of insertion sort. It is an in–place comparison sort. Shell Sort is also known as diminishing increment sort, it is one of

Quick Sort also uses divide and conquer technique like merge sort, but does not require additional storage space. It is one of the most famous comparison based sorting

Binary Insertion sort is a variant of Insertion sorting in which proper location to insert the selected element is found using the binary search. Read Insertion Sort in

Insertion sort is a comparison based sorting algorithm which sorts the array by shifting elements one by one from an unsorted sub-array to the sorted subarray. With each

Bubble sort is the basic sorting algorithm which continuously compares the adjacent pairs and swaps them if they are in wrong order. This algorithm is generally used to

Selection sort is the most fundamental, simple and most importantly an in-place sorting algorithm. This algorithm divides the input list into two sub arrays- A sub array of

Binary Search Algorithm and its Implementation In our previous tutorial we discussed about Linear search algorithm which is the most basic algorithm of searching which has some disadvantages in

Linear search algorithm is one of the most basic algorithm in computer science to find a particular element in a list of elements. So before starting this tutorial