Code Challenges

Get better at coding with practice problems.

Coding Challenges

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

Showing 19 of 67 problems

Implement the longestPalindromicSubsequenceLength method that returns the length of the longest palindromic subsequence. Solved

Implement the editDistanceSimple method that returns the minimum edit operations needed to convert one string into another. Solved

Implement the longestCommonSubsequenceLength method that returns the length of the longest common subsequence of two strings. Solved

Implement the method minimumWindowLength that returns the length of the smallest substring containing all required characters. Solved

Implement the method countPalindromicSubstrings that counts all palindromic substrings. Solved

Implement the method longestUniqueSubstring that returns the length of the longest substring without repeated characters. Solved

Intermediate

Implement the method compressRuns that compresses consecutive repeated characters. Solved

Implement the method reverseWords that reverses the order of words in a string. Solved