Problem Link: http://www.spoj.com/problems/ACPC10A/

The problem is to find whether the sequence is in Arithmetic progression or geometric progression.The sequence contains only
three numbers, so if we can find b-a == c-b then the problem is solved.

Solution Link: https://github.com/bharaththiruveedula/Algorithms/blob/master/SPOJ/ACPC10A.java

Advertisements