1. In mathematics and computer science, an algorithm is a step-by-step procedure for calculations. Algorithms are used for calculation, data processing, and automated reasoning.
2. Here you can find the algorithm description and also implementation of the algorithm using C, C++ and Java.
3. Please read the algorithm description first and try to implement it by yourself.
4. If you stuck then look at the implementation (C/C++/Java Code) of the algorithm.
Do you have any query please contact with us via email: firstname.lastname@example.org