Solved Write Two Java Programs For The Following Algorithms

Solved Write Two Java Programs For The Following Algorithms