Exercises
Browse All Exercises
Search and filter across the entire exercise library.
Filters
97 exercises
medium
Python
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
hard
Python
Longest Palindromic Substring
Implement a function that finds the longest palindromic substring in a given string. ## Requirements - Return the long...
strings
algorithms
palindromes
+5
medium
Python
String Compression with Run-Length Encoding
# String Compression Implement a function that compresses strings using run-length encoding. This technique replaces co...
strings
algorithms
compression
+5
medium
Python
Minimum Window Substring
# Minimum Window Substring Implement a function that finds the minimum window substring in string `s` that contains all...
sliding-window
two-pointers
hash-map
+5
medium
Python
Longest Substring Without Repeating Characters
# Longest Substring Without Repeating Characters Implement a function that finds the length of the longest substring wi...
sliding-window
hash-table
string
+6
easy
Python
Reverse Words in String
Write a function that reverses the order of words in a string while preserving the spacing between them. ## Requirement...
strings
arrays
splitting
+5
easy
Python
Valid Palindrome Checker
Write a function that determines if a string is a valid palindrome, considering only alphanumeric characters and ignorin...
strings
palindrome
filtering
+5
medium
Python
K Most Frequent Elements
Build a function that finds the k most frequent elements in an array of integers. ## Requirements - Function signature...
algorithms
heap
frequency-analysis
+7
medium
Python
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...
arrays
algorithms
two-pointers
+6
medium
Python
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...
arrays
hash-set
sequences
+6
medium
Python
Anagram Grouping
Build a function that groups an array of strings into anagram groups. Anagrams are words that contain the same letters...
algorithms
strings
dictionaries
+7
easy
Python
Anagram Checker
Write a function that determines if two strings are anagrams of each other. Two strings are anagrams if they contain th...
strings
anagrams
algorithms
+7
Previous
Page 8 of 9
Next