Hackerrank – Area Under Curves and Volume of Revolving a Curve

Hackerrank – Problem Statement

A description of the problem can be found on Hackerrank.


  • function f is an applied algebraic expression to x as in problem description
  • function area is area of the cycle ($$\Pi r^2$$) with center 0 and radius value of function(x)
  • function summation is applied once for function f and one for function area

I created solution in:

All solutions are also available on my GitHub.


Leave a Reply

Your email address will not be published. Required fields are marked *