Code Challenges

Get better at coding with practice problems.

Coding Challenges

Select a problem, write code, run test cases, and submit your solution.

Showing 8 of 65 problems
Beginner

Implement the method sumOfSquares that returns the sum of squares from 1 to n. Solved

Learner

Implement the method fibonacci that returns the nth Fibonacci number. Solved

Implement the method gcd that returns the greatest common divisor of two integers. Solved

Beginner

Implement the method calculateCircleArea that takes the radius of a circle as a float and returns its area. Solved

Beginner

Implement the method sumDigits that takes an integer as input and returns the sum of its digits. Solved

Implement the method isEven that takes an integer as input and returns true if the number is even, and false if it is odd. Solved

Learner

Implement the method factorial that takes a non-negative integer as input and returns its factorial. Solved

Learner

Implement the method sumArray that calculates and returns the sum of all integers in an input array. Solved