Code Challenges

Get better at coding with practice problems.

Coding Challenges

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

Showing 13 of 355 problems

Implement the method findSecondLargest that returns the second largest distinct integer in an array. Solved

Beginner

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

Implement the method isAnagram that takes two strings and returns true if they are anagrams of each other, otherwise returns false. Solved

Implement the method countOccurrences that takes a string and a character as input and returns the number of times that character appears in the string. Solved

Implement the method removeVowels that takes a string as input and returns the string after removing all vowels from it. 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

Implement the method findMax that takes an array of integers and returns the largest (maximum) value in the array. Solved

Implement the method countVowels that returns the number of vowels present in a given string. Solved

Learner

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

70% solved Learner

Implement the reverseString method, which accepts a string and returns its reverse. Solved