Code Challenges

Get better at coding with practice problems.

Coding Challenges

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

Showing 10 of 67 problems
Intermediate

Implement the method isBalancedBrackets that checks whether brackets are correctly nested. Solved

Implement the method longestCommonPrefix that returns the shared starting text of all strings. Solved

Intermediate

Implement the method firstNonRepeatingChar that returns the first non-repeating character in a string. Solved

Implement the method countConsonants that returns the number of consonants in a string. Solved

Beginner

Implement the method countWords that returns the number of words in a string. 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

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

70% solved Learner

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