Exercises

Browse All Exercises

Search and filter across the entire exercise library.

97 exercises

mediumPython
String Rotation Checker
Write a function that determines if one string is a rotation of another string. A string rotation means you can take ch...
strings
algorithms
rotation
+5
hardPython
Longest Palindromic Substring
Implement a function that finds the longest palindromic substring in a given string. ## Requirements - Return the long...
stringsalgorithmspalindromes+5
mediumPython
String Compression with Run-Length Encoding
# String Compression Implement a function that compresses strings using run-length encoding. This technique replaces co...
stringsalgorithmscompression+5
mediumPython
Minimum Window Substring
# Minimum Window Substring Implement a function that finds the minimum window substring in string `s` that contains all...
sliding-windowtwo-pointershash-map+5
mediumPython
Longest Substring Without Repeating Characters
# Longest Substring Without Repeating Characters Implement a function that finds the length of the longest substring wi...
sliding-windowhash-tablestring+6
easyPython
Reverse Words in String
Write a function that reverses the order of words in a string while preserving the spacing between them. ## Requirement...
stringsarrayssplitting+5
easyPython
Valid Palindrome Checker
Write a function that determines if a string is a valid palindrome, considering only alphanumeric characters and ignorin...
stringspalindromefiltering+5
mediumPython
K Most Frequent Elements
Build a function that finds the k most frequent elements in an array of integers. ## Requirements - Function signature...
algorithmsheapfrequency-analysis+7
mediumPython
Product Array Without Division
Create a function `product_except_self(nums)` that returns an array where each element is the product of all elements in...
arraysalgorithmstwo-pointers+6
mediumPython
Longest Consecutive Sequence in O(n) Time
Write a function that finds the length of the longest consecutive sequence in an unsorted array, running in O(n) time co...
arrayshash-setsequences+6
mediumPython
Anagram Grouping
Build a function that groups an array of strings into anagram groups. Anagrams are words that contain the same letters...
algorithmsstringsdictionaries+7
easyPython
Anagram Checker
Write a function that determines if two strings are anagrams of each other. Two strings are anagrams if they contain th...
stringsanagramsalgorithms+7
PreviousPage 8 of 9Next