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

Problem is to find, the nth number whose cube ends with 888. Simple arithmetic series problem. Again use BigIntegers.

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

Advertisements