Skip to main content
grasp.study
About
Explore
Pricing
Log in
Try it for free
Back to course
👋
Welcome to a Grasp lesson
Create a free account
to keep studying and create your own study path.
LeetCode Algorithm Refresh: Reversals
·
Module 1
Core In-Place Manipulation
1
In-place Reversal with Two Pointers
Reverse a string or array in-place using a two-pointer approach.
2
Reversing Array/String Segments
Reverse a specific segment or alternating segments of an array or string.
Conditional Reversal of Elements
Selectively reverse elements matching a filter (e.g., letters only) while preserving the positions of other elements.
4
In-Place String Reversal: Words
Reverse the order of words in a string using O(1) extra space via the reverse-all-then-reverse-each-word pattern.
5
Reverse Until Character
Reverse a prefix of a string up to the first occurrence of a given character.
Next module isn't ready yet,
Back to course
Previous module
Next module