Bubble sort is the simplest sorting algorithm. It works by iterating the input array from the first element to last. We compare each pairs of elements and swapping them if they are in wrong order. The algorithm got its name from the way larger element “bubble” to the end of the array. Let us take …

If we want to store a group of data together in one place, then array should be used. An array is a finite, ordered and collection of homogeneous data.

The Tower of Hanoi is a mathematical puzzle. It consists of three towers, and a number of disk. Disk are of different sizes and they can slide on any rod.

If we want to store a group of data together in one place, then array should be used. An array is a finite, ordered and collection of homogeneous data.